-
Notifications
You must be signed in to change notification settings - Fork 590
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
fix(compactor): introduce dedicated config for compactor meta cache #19484
base: main
Are you sure you want to change the base?
Conversation
…nto li0k/compactor_memory_config
let memory_collector = Arc::new(HummockMemoryCollector::new( | ||
sstable_store.clone(), | ||
memory_limiter.clone(), | ||
storage_memory_config, | ||
)); | ||
|
||
let heap_profiler = HeapProfiler::new( | ||
system_memory_available_bytes(), | ||
compactor_opts.compactor_total_memory_bytes, |
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.
Is this correct? The documentation of HeapProfiler says:
total_memory
must be the total available memory for the process.
It will be compared with the process resident memory.
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.
Correct me if I'm wrong.
I refer to cn's approach, where compactor_opts.compactor_total_memory_bytes represents the memory limit for the current process, whether it is a dedicated or standalone deployment.
I understand that after #19477, standalone will also set total_memory_bytes for cn, so the current pr is similar to CN.
…nto li0k/compactor_memory_config
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
introduce dedicated config for compactor meta cache, avoiding misuse of CN's meta cache configuration in environments that lack config map isolation.
And PR removed the misuse of
extract_storage_memory_config
and corrects a problem with HeapProfiler's wrongtotal_memory
parameters.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.