-
Notifications
You must be signed in to change notification settings - Fork 596
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
refactor(frontend): make frontend compute runtime configurable #14597
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.
Thanks! Left some comments.
src/common/src/config.rs
Outdated
|
||
#[serde(default = "default::streaming::compute_runtime_worker_threads")] | ||
/// compute runtime worker threads | ||
pub compute_runtime_worker_threads: usize, |
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.
This should be moved to BatchConfig
, since this is used for configuring executions in batch.
src/common/src/config.rs
Outdated
|
||
#[serde(default = "default::streaming::compute_runtime_worker_name")] | ||
/// compute runtime worker name | ||
pub compute_runtime_worker_name: String, |
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.
Do we really need this?
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.
removed
src/frontend/src/session.rs
Outdated
compute_runtime: Self::create_compute_runtime(), | ||
compute_runtime: Arc::new(BackgroundShutdownRuntime::from( | ||
Builder::new_multi_thread() | ||
.worker_threads(4) |
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.
We already generated default value for config, why not use config's value?
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.
Fixed, directly use the default value in config
src/common/src/config.rs
Outdated
|
||
#[serde(default = "default::batch::compute_runtime_worker_threads")] | ||
/// compute runtime worker threads | ||
pub compute_runtime_worker_threads: usize, |
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.
pub compute_runtime_worker_threads: usize, | |
pub frontend_compute_runtime_worker_threads: usize, |
I suggest to rename to this since we have also runtime for batch in compute node, adding this makes things more clear.
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.
Renamed.
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.
Others LGTM
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.
LGTM, thanks!
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
As title, set some parameters in
RwConfig
. Try to solve #10782Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.