Enhancement #69910
openDedicate config for max aio on bucket index cleanup
0%
Description
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.
SF Updated by Seena Fallah almost 2 years ago
- Pull request ID set to 61760
CB Updated by Casey Bodley almost 2 years ago
- Related to Bug #70108: rocksdb: reenable DeleteRange via rocksdb_delete_range_threshold added
IF Updated by Igor Fedotov almost 2 years ago
@Seena Fallah - could you please provide more details about the cluster experiencing issues with index cleanup - current Ceph version, Ceph version when deployed, is DB sharding enabled at OSD (legacy deployed OSDs could have it off)?
To get the DB sharding settings one should run "ceph-bluestore-tool show-sharding" against specific OSD, the latter to be offline.
The reason why I'm asking is that non-sharded OSD uses whole-space unbounded iterator when doing bulk DB removals which is rather less effective. So if that's the case it would be interesting to see if there is any improvement when sharding is applied.
SF Updated by Seena Fallah almost 2 years ago ยท Edited
@Igor Fedotov - The cluster is freshly installed via reef v18.2.2 and still on this version. the sharding is as default as:
m(3) p(3,0-12) O(3,0-13)=block_cache={type=binned_lru} L=min_write_buffer_number_to_merge=32 P=min_write_buffer_number_to_merge=32
What I have observed with the default value of 128 concurrency deletions on 8209 shards to 16411 (the bucket had 416M versioned object - I would assume something like 1.6B index entries cause I had large omap warning already), I have my index pool running on NVMes, 12 of them via replica 3, with 256 pgs, caused ~400MB/s bluefs read (ceph_bluefs_read_bytes) and ~600MB/s bluefs write (ceph_bluefs_write_bytes) on every OSD, it took around 20min, and that caused the whole index pool slow and cause the whole RGW workload down cause most operation needs a visit to index pool.
Currently, the deletion needs to be moderated, I thought maybe concurrency could help, but with concurrency of 2 (in my new tests) I can't see much improvement for fewer shards either. so perhaps delete range can be an option if it could make the load on rocksdb moderated.
RZ Updated by Radoslaw Zarzynski almost 2 years ago
scrub note: linking for reference https://github.com/ceph/ceph/pull/61760.
KS Updated by Konstantin Shalygin 8 months ago
- Backport changed from squid reef to squid