]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Apply randomly determined IO priority cutoff across all OSD shards 53524/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Mon, 13 Nov 2023 12:13:40 +0000 (17:43 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Tue, 14 Nov 2023 05:59:32 +0000 (11:29 +0530)
commitbfbc6b65c672d6dc4326d4e29b4a1ee106c9c091
tree336ab872bdc6c2323d05f05043998519bd707a67
parentfadc0979aadafb19376248519dceb30b8c2ad4be
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>
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