-
Notifications
You must be signed in to change notification settings - Fork 456
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
Add dynamically adjust the upper limit of the data that each layer configure option. #497
Conversation
Update Rocksdb options, enable level_compaction_dynamic_level_bytes f…
Cool, thanks for your contribution. |
@WyattJia I have a look at the PR, overall was good to me. But we need to fix those lint issues first:
|
Copy that, I've formated and pushed code, thanks for your review. |
Co-authored-by: Myth <[email protected]>
Co-authored-by: Myth <[email protected]>
Co-authored-by: Myth <[email protected]>
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.
Good job!
Co-authored-by: Wang Yuan <[email protected]>
cool, also need to multiple the https://github.com/KvrocksLabs/kvrocks/blob/unstable/src/config.cc#L346 |
Done and thank you for your reminder. |
@WyattJia Cool, really thanks for your contribution and patient. |
@ShooterIT Please take a look again |
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
if (!RocksDB.level_compaction_dynamic_level_bytes) { | ||
return Status(Status::NotOK, errNotSetLevelCompactionDynamicLevelBytes); | ||
} |
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 judgement is necessary? a mistake?
# The total file size of level-1 sst. | ||
# | ||
# Default: 256 M | ||
rocksdb.max_bytes_for_level_base 256 |
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.
since this config has bytes
word, we should use byte unit, right? or we rename it to level_base_size? maybe rocksdb name is better?
This commit is not released in newest version, we have chances to change.
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.
Yeah, I also think bytes
is better.
@WyattJia have a look? |
Please check and review, thanks.