Repository navigation
pacific: bluestore: set upper and lower bounds on rocksdb omap iterators - #45963
Merged
Merged
Conversation
Limits RocksDB omap Seek operations to the relevant key range of the object's omap. This prevents RocksDB from unnecessarily iterating over delete range tombstones in irrelevant omap CF shards. Avoids extreme performance degradation commonly caused by tombstones generated from RGW bucket resharding cleanup. Also prefer CFIteratorImpl over ShardMergeIteratorImpl when we can determine that all keys within specified IteratorBounds must be in a single CF. Fixes: https://tracker.ceph.com/issues/55324 Signed-off-by: Cory Snyder <[email protected]> (cherry picked from commit 850c16c)
cfsnyder
force-pushed
the
wip-55324-pacific-backport
branch
from
April 19, 2022 18:20
6b38e82 to
d0b03f2
Compare
Contributor
Author
Member
|
Adding a note here to document that this PR needs to backport ca3ccd9 from the master PR. |
Contributor
Author
…isabled Add osd_rocksdb_iterator_bounds_enabled config option to allow rocksdb iterator bounds to be disabled. Also includes minor refactoring to shorten code associated with IteratorBounds initialization in bluestore. Signed-off-by: Cory Snyder <[email protected]> (cherry picked from commit ca3ccd9) Conflicts: src/common/options/osd.yaml.in Cherry-pick notes: - Conflicts due to option definition in common/options.cc in Pacific vs. common/options/osd.yaml.in in later releases
cfsnyder
force-pushed
the
wip-55324-pacific-backport
branch
from
April 21, 2022 17:57
e74948e to
7d96030
Compare
…rBounds) Adds a precondition to RocksDBStore::get_cf_handle(string, IteratorBounds) to avoid duplicating logic of the only caller (RocksDBStore::get_iterator). Assertions will fail if preconditions are not met. Signed-off-by: Cory Snyder <[email protected]> (cherry picked from commit 55ef16f)
Contributor
Author
|
55ef16f also backported and included |
Member
|
jenkins test api |
Member
|
jenkins test make check |
1 similar comment
Member
|
jenkins test make check |
Member
|
jenkins test api |
Member
|
jenkins test make check |
Member
ljflores
approved these changes
Apr 25, 2022
neha-ojha
approved these changes
Apr 25, 2022
4 of 14 tasks
4 of 14 tasks
4 of 14 tasks
3 of 14 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.
Limits RocksDB omap Seek operations to the relevant key range of the object's omap.
This prevents RocksDB from unnecessarily iterating over delete range tombstones in
irrelevant omap CF shards. Avoids extreme performance degradation commonly caused
by tombstones generated from RGW bucket resharding cleanup. Also prefer CFIteratorImpl
over ShardMergeIteratorImpl when we can determine that all keys within specified
IteratorBounds must be in a single CF.
backport of #45904
parent tracker: https://tracker.ceph.com/issues/55324