Repository navigation
Add ability to control rocksdb block cache - #37391
Merged
Merged
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
aclamk
force-pushed
the
wip-kv-onode-cache
branch
from
January 11, 2021 09:24
f55cfa0 to
1afc515
Compare
Signed-off-by: Mark Nelson <[email protected]>
aclamk
force-pushed
the
wip-kv-onode-cache
branch
from
January 15, 2021 16:20
1afc515 to
e3a8a05
Compare
Modified original onode column family cache into generic feature.
Now 2 options are possible for each column family:
1) use generic block cache but apply different BlockBasedTableOptions
2) create separate block cache. it will be applied for all shards of column family
It is done by specifying special option "block_cache" to CF definition:
Example: O(3,0-13)=block_cache={high_ratio=1.000}
"block_cache" accepts all BlockBasedTableOptions options with additions:
-"type" - binned_lru/lru/clock (default: ceph_options.rocksdb_cache_type)
-"size" - e.g.: 100M (default: ceph_options.rocksdb_cache_size)
-"high_ratio" - e.g.: 0.75 (default: 0.0)
If any of above is set, new block cache is created, otherwise default is used.
Signed-off-by: Adam Kupczyk <[email protected]>
aclamk
force-pushed
the
wip-kv-onode-cache
branch
from
January 15, 2021 17:01
e3a8a05 to
fe834c2
Compare
Signed-off-by: Mark Nelson <[email protected]>
3 tasks
jdurgin
approved these changes
Jan 15, 2021
neha-ojha
approved these changes
Jan 16, 2021
Member
|
Congrats everyone! :) |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds artificial option "block_cache" to grammar of column family.
Allows to specify separate block cache to column family (all its shards).
Allows to apply default block cache, but with different BlockBasedTableOptions options.