]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Sat, 17 May 2025 06:33:42 +0000 (01:33 -0500)
commit4a0d5ea20acabb522c664b71d702f948098feaaf
treef6b96f7190d2f2b5c735f0b75db6d36c21727dd1
parentdd7948a5d8f8f71f721edb3bd3c6062e4bc3d940
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>
src/osd/scrubber/osd_scrub.cc
src/osd/scrubber/osd_scrub.h