Repository navigation
Conversation
When a bucket with many shards is resharded, especially with large omaps, the deletion of old index shards can put significant load on the index pool. The default value of rgw_bucket_index_max_aio (128) results in deleting 128 shards simultaneously, which can exacerbate the issue. Introducing a dedicated config to control the maximum number of deletions allows for better management of this load during cleanup. Fixes: https://tracker.ceph.com/issues/69910 Signed-off-by: Seena Fallah <[email protected]>
|
jenkins test windows |
|
cc @markhpc @aclamk @rzarzynski @neha-ojha @mattbenjamin when rgw deletes bucket index objects containing lots of omap keys, we rely on as a result, RocksDBStore has to list all of the omap keys and delete each separately. Seena reports:
#33439 cites "cpu and latency issues when DeleteRange is invoked for all objects" as the reason to disable it, and i assume that's related to the "range tombstones" created by DeleteRange that are visible to omap listings i'm hoping that @cfsnyder's #45904 improved matters here:
i would really like to see edit: i've opened https://tracker.ceph.com/issues/70108 against the rados project to track this |
|
We will need to reconsider but taking into account also #46095. BTW: I wonder whether there is a way a client (or just a cls) can hint a compaction to happen. I doubt we have any interface for that in place but the idea seems interesting. |
Doesn’t this fall into the following fact from: https://rocksdb.org/blog/2018/11/21/delete-range.html#existing-mechanisms-challenges-and-opportunities
|
| (void) CLSRGWIssueBucketIndexClean(index_pool, | ||
| bucket_objs, | ||
| cct->_conf->rgw_bucket_index_max_aio)(); | ||
| cct->_conf->rgw_clean_bucket_index_max_aio)(); |
There was a problem hiding this comment.
Apart of better index cleanup configurability this effectively changes the default value (from 128 to 1). Is this really intended?
|
@markhpc: any free cycles to reverify-after-the-years? |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
When a bucket with many shards is resharded, especially with large omaps, the deletion of old index shards can put significant load on the index pool. The default value of rgw_bucket_index_max_aio (128) results in deleting 128 shards simultaneously, which can exacerbate the issue. Introducing a dedicated config to control the maximum number of deletions allows for better management of this load during cleanup.
Fixes: https://tracker.ceph.com/issues/69910