Skip to content

Commit 8c2ed94

Browse files
committed
osd/scrub: decrease default deep scrub chunk size
The previous default of 25 objects per chunk proved to take too long (many hundreds of milliseconds) on a busy cluster. As the scrubber locks all objects in the chunk for the duration, a large chunk size can cause a significant impact on the client ops' latencies. Fixes: https://tracker.ceph.com/issues/68057 Signed-off-by: Ronen Friedman <[email protected]>
1 parent 710357d commit 8c2ed94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/common/options/osd.yaml.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,10 @@ options:
349349
type: int
350350
level: advanced
351351
desc: Maximum number of objects to deep-scrub in a single chunk
352-
fmt_desc: The maximum number of object store chunks to scrub during single operation.
353-
default: 25
352+
fmt_desc: The maximum number of objects to deep-scrub during single internal
353+
scrub operation. Large values would improve scrubbing performance but
354+
may adversely affect client operations' latency.
355+
default: 15
354356
see_also:
355357
- osd_scrub_chunk_min
356358
with_legacy: true

0 commit comments

Comments
 (0)