-
Notifications
You must be signed in to change notification settings - Fork 594
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
feat(memory): Separate total memory configurations for FE and Compactor #19372
Conversation
…nto li0k/memory_calculation
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
@@ -159,6 +160,10 @@ pub struct FrontendOpts { | |||
default_value = "./secrets" | |||
)] | |||
pub temp_secret_file_dir: String, | |||
|
|||
/// Total available memory for the frontend node in bytes. Used by both computing and storage. |
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.
/// Total available memory for the frontend node in bytes. Used by both computing and storage. | |
/// Total available memory for the frontend node in bytes. Used by frontend. |
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.
I think this comment is not resolved.
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.
Generally LGTM, thanks for your work in debugging this and providing a solution!
…nto li0k/memory_calculation
…nto li0k/memory_calculation
Should we cherry pick this to 2.1? |
@@ -159,6 +160,10 @@ pub struct FrontendOpts { | |||
default_value = "./secrets" | |||
)] | |||
pub temp_secret_file_dir: String, | |||
|
|||
/// Total available memory for the frontend node in bytes. Used by both computing and storage. |
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.
Does storage run in frontend? IIRC, even in local execution mode, the TableScan
is pushed to compute nodes.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
part of #19245
This PR introduces a separate total memory configuration for FE and Compactor.
In standalone deployment mode, the total_memory of different nodes should be set to achieve memory isolation. (Not included in this PR)
Checklist
./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.