fuyou001 closed pull request #225: [ROCKETMQ-361]  Heartbeat handler use  
independently thread pool
URL: https://github.com/apache/rocketmq/pull/225
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/broker/src/main/java/org/apache/rocketmq/broker/client/net/Broker2Client.java 
b/broker/src/main/java/org/apache/rocketmq/broker/client/net/Broker2Client.java
index 65b444e6e..f0f465c49 100644
--- 
a/broker/src/main/java/org/apache/rocketmq/broker/client/net/Broker2Client.java
+++ 
b/broker/src/main/java/org/apache/rocketmq/broker/client/net/Broker2Client.java
@@ -108,7 +108,7 @@ public void notifyConsumerIdsChanged(
             
RemotingCommand.createRequestCommand(RequestCode.NOTIFY_CONSUMER_IDS_CHANGED, 
requestHeader);
 
         try {
-            this.brokerController.getRemotingServer().invokeOneway(channel, 
request, 10);
+            this.brokerController.getRemotingServer().invokeOneway(channel, 
request, 2);
         } catch (Exception e) {
             log.error("notifyConsumerIdsChanged exception, " + consumerGroup, 
e.getMessage());
         }
diff --git 
a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyServerConfig.java
 
b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyServerConfig.java
index a5e2a232d..9d3332ee6 100644
--- 
a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyServerConfig.java
+++ 
b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyServerConfig.java
@@ -21,8 +21,8 @@
     private int serverWorkerThreads = 8;
     private int serverCallbackExecutorThreads = 0;
     private int serverSelectorThreads = 3;
-    private int serverOnewaySemaphoreValue = 256;
-    private int serverAsyncSemaphoreValue = 64;
+    private int serverOnewaySemaphoreValue = 8096;
+    private int serverAsyncSemaphoreValue = 1024;
     private int serverChannelMaxIdleTimeSeconds = 120;
 
     private int serverSocketSndBufSize = NettySystemConfig.socketSndbufSize;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to