-
Notifications
You must be signed in to change notification settings - Fork 599
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
chore(storage): upgrade config #14601
Conversation
…nto li0k/test_compact_config
…nto li0k/test_compact_config
src/common/src/config.rs
Outdated
const DEFAULT_TARGET_FILE_SIZE_BASE: u64 = 32 * 1024 * 1024; // 32MB | ||
const DEFAULT_MAX_SUB_COMPACTION: u32 = 4; | ||
const DEFAULT_LEVEL_MULTIPLIER: u64 = 5; | ||
const DEFAULT_MAX_SPACE_RECLAIM_BYTES: u64 = 512 * 1024 * 1024; // 512MB; | ||
const DEFAULT_LEVEL0_STOP_WRITE_THRESHOLD_SUB_LEVEL_NUMBER: u64 = 300; | ||
const DEFAULT_MAX_COMPACTION_FILE_COUNT: u64 = 96; | ||
const DEFAULT_MAX_COMPACTION_FILE_COUNT: u64 = 200; |
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.
Will it cause some cluster with less memory OOM ?
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 found that it did not affect tier compact, and in this PR I decided to roll it back
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.
rest LGTM
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
related to #13331. The default value of ckpt is 1, which means that l0 files are generated twice as fast, so adjust the l0-related compact parameters for better performance.
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.