Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

merlimat
Copy link
Contributor

Motivation

Currently the number of IO threads for client and bookie are set to 2 * Runtime.getRuntime().availableProcessors(). Added configuration options to tune it.

@merlimat merlimat added this to the 4.8.0 milestone Aug 18, 2018
@merlimat merlimat self-assigned this Aug 18, 2018
Copy link
Contributor

@eolivelli eolivelli left a 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?

@merlimat
Copy link
Contributor Author

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.

@sijie
Copy link
Member

sijie commented Aug 20, 2018

run integration tests

1 similar comment
@sijie
Copy link
Member

sijie commented Aug 20, 2018

run integration tests

@sijie sijie modified the milestones: 4.8.0, 4.9.0 Aug 21, 2018
@sijie sijie closed this in b9916d3 Aug 21, 2018
sijie pushed a commit that referenced this pull request Aug 21, 2018
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>
zymap pushed a commit that referenced this pull request Apr 13, 2022
### 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.
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
### 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants