]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Set initial mClock QoS params at CONF_DEFAULT level 47020/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Wed, 15 Jun 2022 14:52:53 +0000 (20:22 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Fri, 8 Jul 2022 05:27:35 +0000 (10:57 +0530)
commit9e27ad8605b37e4b9fead432fcf73c80f1f4aad8
tree225f6c0de801559f4f893f69b02373fd155cb8bd
parentb5b4357b053fb75be7bc90dcff38f8191ffc0897
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>
(cherry picked from commit e0b5316171628d7aa704a38f6b3dbcde906e6e08)
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