Skip to content

make orderedExecutor threads number configurable #7765

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

Merged
merged 4 commits into from
Aug 11, 2020

Conversation

hangc0276
Copy link
Contributor

Motivation

The orderedExecutor number is hard code to 8 when pulsar service start, it should be configurable in broker.conf.

orderedExecutor = OrderedExecutor.newBuilder().numThreads(8).name("pulsar-ordered")

Changes

make the orderedExecutor threads number configurable in broker.conf

conf/broker.conf Outdated
@@ -58,6 +58,9 @@ advertisedAddress=
# Number of threads to use for Netty IO. Default is set to 2 * Runtime.getRuntime().availableProcessors()
numIOThreads=

# Number of threads to use for orderedExecutor. Default is 8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add more description for the ordered executor in the broker? For example, what tasks will he be used to perform, etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your feedback. I have updated some descriptions, please take a look.

@codelipenghui codelipenghui added this to the 2.7.0 milestone Aug 6, 2020
@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

hangc0276 and others added 2 commits August 9, 2020 17:34

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: Matteo Merli <mmerli@apache.org>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: Matteo Merli <mmerli@apache.org>
@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

@sijie sijie added area/config type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages labels Aug 11, 2020
@sijie sijie merged commit 40702d1 into apache:master Aug 11, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
### Motivation
The orderedExecutor number is hard code to 8 when pulsar service start, it should be configurable in broker.conf.
```
orderedExecutor = OrderedExecutor.newBuilder().numThreads(8).name("pulsar-ordered")
```
### Changes
make the orderedExecutor threads number configurable in broker.conf
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
### Motivation
The orderedExecutor number is hard code to 8 when pulsar service start, it should be configurable in broker.conf.
```
orderedExecutor = OrderedExecutor.newBuilder().numThreads(8).name("pulsar-ordered")
```
### Changes
make the orderedExecutor threads number configurable in broker.conf
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
### Motivation
The orderedExecutor number is hard code to 8 when pulsar service start, it should be configurable in broker.conf.
```
orderedExecutor = OrderedExecutor.newBuilder().numThreads(8).name("pulsar-ordered")
```
### Changes
make the orderedExecutor threads number configurable in broker.conf
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
### Motivation
The orderedExecutor number is hard code to 8 when pulsar service start, it should be configurable in broker.conf.
```
orderedExecutor = OrderedExecutor.newBuilder().numThreads(8).name("pulsar-ordered")
```
### Changes
make the orderedExecutor threads number configurable in broker.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants