]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: a single counters selection mechanism - step 1
authorRonen Friedman <rfriedma@redhat.com>
Sun, 13 Apr 2025 17:53:12 +0000 (12:53 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 15 Apr 2025 11:01:30 +0000 (06:01 -0500)
commit2fec38b728505682dbe1b8c1895b8211eced6f0c
treef17f741f0ce96eb898a02654766721ddd21867c6
parent3aa61b365c0af0008cb8fd7be00d77a4cb507b28
osd/scrub: a single counters selection mechanism - step 1

Following the preceeding PR, the Scrubber now employs
two methods for selecting the specific subset of performance
counters to update (the replicated pool set or the EC one).
The first method is using labeled counters, with 4 optional labels
(Primary/Replica X Replicated/EC Pool). The second method
is by naming the specific OSD counters to use in ScrubIoCounterSet
objects, then selecting the appropriate set based on the pool type.

This commit is the first step on the path to unifying the two
methods - discarding the use of labeled counters, and only
naming OSD counters.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/osd_perf_counters.cc
src/osd/osd_perf_counters.h
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/pg_scrubber.h
src/osd/scrubber/scrub_machine.cc
src/osd/scrubber/scrub_machine.h
src/osd/scrubber/scrub_machine_lstnr.h
src/osd/scrubber_common.h