yandrey321 commented on code in PR #1466:
URL: https://github.com/apache/ratis/pull/1466#discussion_r3273647493
##########
ratis-grpc/src/main/java/org/apache/ratis/grpc/GrpcConfigKeys.java:
##########
@@ -291,6 +307,23 @@ static int stubPoolSize(RaftProperties properties) {
static void setStubPoolSize(RaftProperties properties, int size) {
setInt(properties::setInt, STUB_POOL_SIZE_KEY, size);
}
+
+ /**
+ * The number of worker threads for the gRPC server-side {@link
+ * org.apache.ratis.thirdparty.io.netty.channel.EventLoopGroup}.
+ * The group is also reused by the server-to-server clients managed by
this server.
+ * 0 (default) means use the gRPC default (i.e. {@code availableProcessors
* 2});
+ * a positive value caps the worker event-loop thread count.
+ */
+ String WORKER_EVENT_LOOP_THREADS_KEY = PREFIX +
".worker.event-loop.threads";
+ int WORKER_EVENT_LOOP_THREADS_DEFAULT = 0;
Review Comment:
we need some positive number here like 16/24/32 or some function from CPU
cores number.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]