From: Ronen Friedman Date: Fri, 6 Sep 2024 12:49:12 +0000 (+0300) Subject: osd/scrub: decrease default deep scrub chunk size X-Git-Tag: testing/wip-vshankar-testing-20241106.074359-squid-debug~117^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0841603023ba53923a986f2fb96ab7105630c9d3;p=ceph-ci.git 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 (cherry picked from commit 8c2ed94e9cbc7b1ed84b034a65b126e16b18a596) --- diff --git a/src/common/options/osd.yaml.in b/src/common/options/osd.yaml.in index 1c461ae4c24..9dc40735e48 100644 --- a/src/common/options/osd.yaml.in +++ b/src/common/options/osd.yaml.in @@ -349,8 +349,10 @@ options: type: int level: advanced desc: Maximum number of objects to deep-scrub in a single chunk - fmt_desc: The maximum number of object store chunks to scrub during single operation. - default: 25 + fmt_desc: The maximum number of objects to deep-scrub during single internal + scrub operation. Large values would improve scrubbing performance but + may adversely affect client operations latency. + default: 15 see_also: - osd_scrub_chunk_min with_legacy: true