maoling commented on issue #784: ZOOKEEPER-974: Allow a configurable ZooKeeper 
server socket listen ba…
URL: https://github.com/apache/zookeeper/pull/784#issuecomment-458040255
 
 
   - very useful property.IMHO,we can set the default value of 
clientPortBacklog to a bigger one(e.g `500`).
   if `clientPortBacklog` = -1,it will use the default value:[50 
](https://docs.oracle.com/javase/7/docs/api/java/net/ServerSocket.html#bind(java.net.SocketAddress)
   ) (too small if server has many incoming requests).
   - need a doc.it's better to write something like this:
         
   
   > In high requests-per-second environments you need an high backlog in order
   >     to avoid slow clients connections issues. Note that the Linux kernel
   >     will silently truncate it to the value of /proc/sys/net/core/somaxconn 
so
   >     make sure to raise both the value of somaxconn and tcp_max_syn_backlog
   >     in order to get the desired effect.if clientPortBacklog = -1,it will 
use the default value:50
   
   BTW, @joshelser   Sir,nice to see you in the zookeeper community.

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