[ 
https://issues.apache.org/jira/browse/HDDS-17886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chung-En Lee updated HDDS-17886:
--------------------------------
    Description: HDDS-11627 changed the event loop group size in 
{{XceiverServerGrpc}} from {{poolSize / 10}} to {{readExecutors.getPoolSize() / 
10}}. {{ThreadPoolExecutor#getPoolSize()}} returns the number of live threads, 
which is 0 for the new executor passed in by {{OzoneContainer}}. Netty treats 0 
as "use the default", so the group always gets 2 × available processors 
threads, and {{hdds.datanode.read.chunk.threads.per.volume}} no longer affects 
it.  (was: HDDS-11627 changed the event loop group size in 
{{XceiverServerGrpc}} from {{poolSize / 10}} to {{readExecutors.getPoolSize() / 
10}}. {{ThreadPoolExecutor#getPoolSize()}} returns the number of live threads, 
which is 0 for the new executor passed in by {{OzoneContainer}}. Netty treats 0 
as "use the default", so the group always gets 2 × available processors 
threads, and {{hdds.datanode.read.chunk.threads.per.volume}} no longer affects 
it.

Switching to {{getCorePoolSize()}} would restore the HDDS-5962 sizing.)

> XceiverServerGrpc sizes its event loop group from 
> ThreadPoolExecutor#getPoolSize, which is 0 at construction
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-17886
>                 URL: https://issues.apache.org/jira/browse/HDDS-17886
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone Datanode
>            Reporter: Chung-En Lee
>            Assignee: Chung-En Lee
>            Priority: Major
>
> HDDS-11627 changed the event loop group size in {{XceiverServerGrpc}} from 
> {{poolSize / 10}} to {{readExecutors.getPoolSize() / 10}}. 
> {{ThreadPoolExecutor#getPoolSize()}} returns the number of live threads, 
> which is 0 for the new executor passed in by {{OzoneContainer}}. Netty treats 
> 0 as "use the default", so the group always gets 2 × available processors 
> threads, and {{hdds.datanode.read.chunk.threads.per.volume}} no longer 
> affects it.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to