]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: move load avg units conversion to the client 63437/head
authorRonen Friedman <rfriedma@redhat.com>
Tue, 20 May 2025 07:29:04 +0000 (02:29 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 30 May 2025 18:16:12 +0000 (13:16 -0500)
commitc68c2a56a2108bae83607c9ac22671304e259920
treeafa29936a852492ec490acb734abdb2aa7c7fc63
parent7d48f5ae76be6e2aaae2477dff09d42e3e744301
osd: move load avg units conversion to the client

The OSD calls OsdScrub::update_load_average() to find out the load
average, and notes it down in a performance counter. The system
load average is multipled by 100 (to improve precision). That
multiplication should be on the side of the client, not the
scrub queue service.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 948e0426b3527d9ab1c92b7a8b90ba6f4bec8043)
src/osd/OSD.cc
src/osd/scrubber/osd_scrub.cc
src/osd/scrubber/osd_scrub.h