]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: remove the 2'nd option for determining 'low load' for scrubbing
authorRonen Friedman <rfriedma@redhat.com>
Sat, 17 May 2025 06:04:22 +0000 (01:04 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 19 May 2025 12:42:07 +0000 (07:42 -0500)
commit257e5297dede03d1d798fee880b01e004c3f920f
treebebe64163e10ea11e2e500338f131246faa51140
parentf590506dc4912714899ddac3b563a153e0a19c3a
osd/scrub: remove the 2'nd option for determining 'low load' for scrubbing

Previously, there were two conditions under which the CPU load was
considered
low enough to allow scrubbing:
- the CPU load was below the configured threshold, or
- the load was below a calculated "daily" average, and lower than the
  15-min average.
That second condition was confusing and surprising, and is now removed.

As the scrubber logic no longer requires the 5m & 15m load averages,
scrub_load_below_threshold() can use the data gathered by the
periodic LoadTracker::update_load_average().

Fixes: https://tracker.ceph.com/issues/71347
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 4a0d5ea20acabb522c664b71d702f948098feaaf)
src/osd/scrubber/osd_scrub.cc
src/osd/scrubber/osd_scrub.h