You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by yo...@apache.org on 2022/04/13 01:47:59 UTC

[bookkeeper] branch master updated: expose netty threads num config to bk_server.conf (#3173)

This is an automated email from the ASF dual-hosted git repository.

yong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b648a8be expose netty threads num config to bk_server.conf (#3173)
1b648a8be is described below

commit 1b648a8be00597094a0ef5005ee4d692d9b8770a
Author: Hang Chen <ch...@apache.org>
AuthorDate: Wed Apr 13 09:47:54 2022 +0800

    expose netty threads num config to bk_server.conf (#3173)
    
    ### Motivation
    https://github.com/apache/bookkeeper/pull/1612 this PR make the Netty io threads number configurable, but doesn't expose to the `bk_server.conf`. This parameter will be usually changed in performance tuning especially deploy this bookie on bare metal which have many cpus. For operation engineer who is unfamiliar with the source code will be hard to do performance tuning.
    
    ### Changes
    Expose this parameter configuration into `bk_server.conf` and website. And add more explanation about it.
---
 conf/bk_server.conf | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/conf/bk_server.conf b/conf/bk_server.conf
index f619f842f..cf76c2a4a 100755
--- a/conf/bk_server.conf
+++ b/conf/bk_server.conf
@@ -148,6 +148,11 @@ extraServerComponents=
 # reduce the number of threads in the main workers pool and Netty event loop to only have few CPU cores busy.
 # enableBusyWait=false
 
+# This is the number of threads used by Netty to handle TCP connections.
+# Default is 2 *  Runtime.getRuntime().availableProcessors()
+# serverNumIOThreads=
+
+
 #############################################################################
 ## Long poll request parameter settings
 #############################################################################