Project

General

Profile

Actions

Enhancement #69910

open
SF

Dedicate config for max aio on bucket index cleanup

Enhancement #69910: Dedicate config for max aio on bucket index cleanup

Added by Seena Fallah almost 2 years ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

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.


Related issues 1 (1 open — 0 closed)

Related to RADOS - Bug #70108: rocksdb: reenable DeleteRange via rocksdb_delete_range_thresholdNew

Actions

SF Updated by Seena Fallah almost 2 years ago Actions #1

  • Pull request ID set to 61760

CB Updated by Casey Bodley almost 2 years ago Actions #2

  • Related to Bug #70108: rocksdb: reenable DeleteRange via rocksdb_delete_range_threshold added

IF Updated by Igor Fedotov almost 2 years ago Actions #3

@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 Actions #4

@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.

KS Updated by Konstantin Shalygin 8 months ago Actions #6

  • Backport changed from squid reef to squid
Actions

Also available in: PDF Atom