]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Set initial mClock QoS params at CONF_DEFAULT level 46700/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Wed, 15 Jun 2022 14:52:53 +0000 (20:22 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Wed, 6 Jul 2022 10:45:58 +0000 (16:15 +0530)
commite0b5316171628d7aa704a38f6b3dbcde906e6e08
treee583eb9eeab4b0189b80bd1e840bb5b35db1f8d8
parent74f6ce75de821a9d0a14dc949360cae856c4b389
osd: Set initial mClock QoS params at CONF_DEFAULT level

Create the initial mClock QoS params at CONF_DEFAULT level using
set_val_default(). This allows switching to a custom profile on a
running OSD and to make necessary changes to the desired QoS params.
Note that Switching to ‘custom’ profile and then subsequently changing
the QoS params using “config set osd.n …” will be at a higher level i.e.
at CONF_MON.

But When switching back to a built-in profile, the new values won’t take
effect since CONF_DEFAULT < CONF_MON. For the values to take effect, the
config keys created as part of the ‘custom’ profile must be removed from
the ConfigMonitor store after switching back to a built-in profile.

- Added a couple of standalone tests to exercise the scenario.
- Updated the mClock configuration document and the mClock internal
  documentation with a couple of typos relating to the best effort weights.
- Added new sections to the mClock configuration document outlining the
  steps to switch between the built-in and custom profile and vice-versa.

Fixes: https://tracker.ceph.com/issues/55153
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
doc/dev/osd_internals/mclock_wpq_cmp_study.rst
doc/rados/configuration/mclock-config-ref.rst
qa/standalone/misc/test-mclock-profile-switch.sh [new file with mode: 0644]
src/osd/scheduler/mClockScheduler.cc