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

[conf][server] Make the size of the threads pool in tablet server scheduler configurable. #126

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

RocMarshal
Copy link
Contributor

@RocMarshal RocMarshal commented Dec 5, 2024

Purpose

Make the size of the threads pool in tablet server scheduler configurable.

Linked issue: close #125

Tests

N.A

API and Format

N.A

Documentation

N.A

@@ -210,6 +210,13 @@ public class ConfigOptions {
"This configuration controls the directory where fluss will store its data. "
+ "The default value is /tmp/fluss-data");

public static final ConfigOption<Integer> SCHEDULER_THREADS =
key("scheduler.threads")
Copy link
Contributor

Choose a reason for hiding this comment

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

tablet-server.scheduler.threads?
TABLET_SERVER_SCHEDULER_THREADS?

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

@RocMarshal Thanks for the contribution. I left some comments.

@@ -202,6 +202,13 @@ public class ConfigOptions {
.noDefaultValue()
.withDescription("The id for the tablet server.");

public static final ConfigOption<Integer> TABLET_SERVER_SCHEDULER_THREADS =
key("tablet-server.scheduler.threads")
Copy link
Member

Choose a reason for hiding this comment

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

server.background.threads for simplification

.intType()
.defaultValue(10)
.withDescription(
"This configuration item to set the core threads for the fluss scheduler in tablet servers.");
Copy link
Member

Choose a reason for hiding this comment

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

"The number of threads to use for various background processing tasks."

@wuchong
Copy link
Member

wuchong commented Dec 17, 2024

Besides, please rebase branch to latest main branch to trigger CI.

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

LGTM

@wuchong wuchong merged commit de510aa into alibaba:main Dec 17, 2024
1 of 2 checks passed
@RocMarshal
Copy link
Contributor Author

Thanks all~

polyzos pushed a commit to polyzos/fluss that referenced this pull request Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Make the size of the threads pool in tablet server scheduler configurable.
3 participants