-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to configure num of Netty IO threads in client and bookie #1612
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay to me.
Do you have numbers or did some trials?
I haven't tested the various numbers. Only scope for this PR is to allow flexibility to configure thread pool size. I might make sense to reduce the thread pool when there are other event loop thread pools running in same process. |
run integration tests |
1 similar comment
run integration tests |
Currently the number of IO threads for client and bookie are set to `2 * Runtime.getRuntime().availableProcessors()`. Added configuration options to tune it. Author: Matteo Merli <mmerli@apache.org> Author: Sijie Guo <guosijie@gmail.com> Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org>, Venkateswararao Jujjuri (JV) <None> This closes #1612 from merlimat/configure-io-threads (cherry picked from commit b9916d3) Signed-off-by: Sijie Guo <sijie@apache.org>
### Motivation #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.
### Motivation apache#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.
Motivation
Currently the number of IO threads for client and bookie are set to
2 * Runtime.getRuntime().availableProcessors()
. Added configuration options to tune it.