]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Apply randomly determined IO priority cutoff across all OSD shards
authorSridhar Seshasayee <sseshasa@redhat.com>
Mon, 13 Nov 2023 12:13:40 +0000 (17:43 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Thu, 21 Dec 2023 07:38:41 +0000 (13:08 +0530)
commit99def68198144b5bdea0f258e0be71d8e6c88db9
tree3ac1ba9c812b5b8c300dcfa2cb66eb81ae8c6da8
parented48227502a8f3505f3602f5b6d4d104686f071b
osd: Apply randomly determined IO priority cutoff across all OSD shards

Determine the op priority cutoff for an OSD and apply it on all the OSD
shards, which is a more realistic scenario. Previously, the cut off value
was randomized between OSD shards leading to issues in testing. The IO
priority cut off is first determined before initializing the OSD shards.
The cut off value is then passed to the OpScheduler implementations that
are modified accordingly to apply the values during initialization.

Fixes: https://tracker.ceph.com/issues/62171
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit bfbc6b65c672d6dc4326d4e29b4a1ee106c9c091)
src/osd/OSD.cc
src/osd/OSD.h
src/osd/scheduler/OpScheduler.cc
src/osd/scheduler/OpScheduler.h
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h
src/test/osd/TestMClockScheduler.cc