-
Notifications
You must be signed in to change notification settings - Fork 600
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: use entry size as weight in block and meta cache, export cache capacity config #1512
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1512 +/- ##
============================================
+ Coverage 70.45% 70.47% +0.01%
Complexity 2766 2766
============================================
Files 1031 1031
Lines 90539 90607 +68
Branches 1790 1790
============================================
+ Hits 63793 63856 +63
- Misses 25855 25860 +5
Partials 891 891
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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 for the rest. Cool!
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
@@ -52,6 +52,8 @@ pub fn mock_sstable_store_with_object_store(object_store: ObjectStoreRef) -> Sst | |||
object_store, | |||
path, | |||
Arc::new(StateStoreMetrics::unused()), | |||
64 << 20, |
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.
We may use default::block_cache_capacity()
here?
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.
Or default_config_for_test().block_cache_capacity
. 🤣
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.
The differences between these two configs are big. Let's maintain them separately for now. I think we still need to refactor the test utils later.
What's changed and what's your intention?
Checklist
Refer to a related PR or issue link (optional)