You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2021/11/09 04:03:00 UTC

[jira] [Commented] (RATIS-1421) make client NioEventLoopGroup size configurable.

    [ https://issues.apache.org/jira/browse/RATIS-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17440887#comment-17440887 ] 

Tsz-wo Sze commented on RATIS-1421:
-----------------------------------

[~micahzhao], FYI, after looking at RATIS-1424, I suggest changing the name of the new conf added by this JIRA as below.
{code}
@@ -70,16 +70,28 @@ public interface NettyConfigKeys {
       setInt(properties::setInt, PORT_KEY, port);
     }
 
-    String CLIENT_EVENT_LOOP_THREADS_KEY = PREFIX + ".client.eventLoopThreads";
-    int CLIENT_EVENT_LOOP_THREADS_DEFAULT = Math.max(1, NettyRuntime.availableProcessors() * 2);
+    String CLIENT_WORKER_GROUP_SIZE_KEY = PREFIX + ".client.worker-group.size";
+    int CLIENT_WORKER_GROUP_SIZE_DEFAULT = Math.max(1, NettyRuntime.availableProcessors() * 2);
 {code}

> make client NioEventLoopGroup size configurable.
> ------------------------------------------------
>
>                 Key: RATIS-1421
>                 URL: https://issues.apache.org/jira/browse/RATIS-1421
>             Project: Ratis
>          Issue Type: Sub-task
>          Components: Netty, Streaming
>            Reporter: mingchao zhao
>            Assignee: mingchao zhao
>            Priority: Major
>             Fix For: 2.3.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> This used to fix HDDS-5915.
> They used S3 GateWay to test streaming, writing files over and over again. 
> Too many open files appear when an OzoneClient(S3 GateWay) uses Streaming Write for a long time.
> Currently the default value is NettyRuntime.availableProcessors() * 2, and decreasing this value can avoid this problem. So we need to make it configurable to be more general.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)