leo65535 opened a new pull request, #691:
URL: https://github.com/apache/ratis/pull/691

   ## What changes were proposed in this pull request?
   
   When run the rpc server, always output redundant and wrong log, like 
admin.port、client.port.
   ```
   2022-07-22 09:24:21 INFO  RaftServer:46 - raft.rpc.type = GRPC (default)
   2022-07-22 09:24:21 INFO  GrpcFactory:48 - PERFORMANCE WARNING: 
useCacheForAllThreads is true that may cause Netty to create a lot garbage 
objects and, as a result, trigger GC.
        It is recommended to disable useCacheForAllThreads by setting 
-Dorg.apache.ratis.thirdparty.io.netty.allocator.useCacheForAllThreads=false in 
command line.
   2022-07-22 09:24:21 INFO  GrpcConfigKeys:46 - raft.grpc.admin.port = -1 
(default)
   2022-07-22 09:24:21 INFO  GrpcConfigKeys:46 - raft.grpc.server.port = 10024 
(custom)
   2022-07-22 09:24:21 INFO  GrpcConfigKeys:46 - raft.grpc.client.port = -1 
(default)
   2022-07-22 09:24:21 INFO  GrpcConfigKeys:46 - raft.grpc.server.port = 10024 
(custom)
   2022-07-22 09:24:21 INFO  GrpcConfigKeys:46 - raft.grpc.server.port = 10024 
(custom)
   2022-07-22 09:24:21 INFO  GrpcService:46 - raft.grpc.message.size.max = 64MB 
(=67108864) (default)
   2022-07-22 09:24:21 INFO  RaftServerConfigKeys:46 - 
raft.server.log.appender.buffer.byte-limit = 4MB (=4194304) (default)
   2022-07-22 09:24:21 INFO  GrpcService:46 - raft.grpc.flow.control.window = 
1MB (=1048576) (default)
   ```
   
   After patch
   ```
   2022-07-21 17:36:03 INFO  RaftServer:46 - raft.rpc.type = GRPC (default)
   2022-07-21 17:36:03 INFO  GrpcFactory:48 - PERFORMANCE WARNING: 
useCacheForAllThreads is true that may cause Netty to create a lot garbage 
objects and, as a result, trigger GC.
        It is recommended to disable useCacheForAllThreads by setting 
-Dorg.apache.ratis.thirdparty.io.netty.allocator.useCacheForAllThreads=false in 
command line.
   2022-07-21 17:36:03 INFO  GrpcConfigKeys:46 - raft.grpc.admin.port = 10024 
(custom)
   2022-07-21 17:36:03 INFO  GrpcConfigKeys:46 - raft.grpc.client.port = 10024 
(custom)
   2022-07-21 17:36:03 INFO  GrpcConfigKeys:46 - raft.grpc.server.port = 10024 
(custom)
   2022-07-21 17:36:03 INFO  GrpcService:46 - raft.grpc.message.size.max = 64MB 
(=67108864) (default)
   2022-07-21 17:36:03 INFO  RaftServerConfigKeys:46 - 
raft.server.log.appender.buffer.byte-limit = 4MB (=4194304) (default)
   2022-07-21 17:36:03 INFO  GrpcService:46 - raft.grpc.flow.control.window = 
1MB (=1048576) (default)
   ```
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-1633
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. Ex: unit tests, manual tests)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   


-- 
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]

Reply via email to