-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: support dynamically change max-subcompactions using config set command #2965
feat: support dynamically change max-subcompactions using config set command #2965
Conversation
WalkthroughThe pull request introduces a new configuration parameter, Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)src/storage/src/options_helper.h (1)
The addition of src/pika_admin.cc (2)
The implementation of
The implementation of
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
支持使用config set 动态修改max-subcompactions参数。
应用场景:
当发现Rocksdb实例出现了由L0层文件达到上限而引起的write stall(L0层compaction速度跟不上flush速度), 可以尝试将max-subcompactions改大,另外该值不占用max-background-jobs的份额,他会直接启动新的lwp来将一个大的L0层compaction分割为多个小compaction并发处理。
Summary by CodeRabbit
New Features
max-subcompactions
, allowing users to manage subcompaction settings.max_subcompactions
in the database options.Bug Fixes