]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Reset mClock's OSD capacity config option for inactive device type 49281/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Wed, 2 Nov 2022 14:45:05 +0000 (20:15 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Tue, 6 Dec 2022 11:53:18 +0000 (17:23 +0530)
commitfb2ad2da9b76d898425c0d16f51e0cad82e7fecb
tree7eb1e528967fb73ed5600f84e76a8b25ad5406c8
parentfa98715ec1908dfed6a5c8ae4cdb70ed4d5a7d4a
osd: Reset mClock's OSD capacity config option for inactive device type

Depending on the underlying device type of an OSD, the mClock's OSD
capacity option of either osd_mclock_max_capacity_iops_hdd or
osd_mclock_max_capacity_iops_ssd is set during OSD boot-up. Both the
options have built-in defaults set. Therefore, when displaying the running
configuration of an OSD, both the values would be displayed with non-zero
values which could confuse/mislead a user.

To address this, override the inactive device type's capacity for the OSD
to '0'.

For e.g., with this change, if the underlying device type for an OSD is
an ssd, the cli displays the running configuration of
osd_mclock_max_capacity_iops_hdd for that OSD as '0' instead of it's
default value.

Fixes: https://tracker.ceph.com/issues/57963
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit a0781c7dbd92f9185861d5509674c9643234552e)
src/osd/scheduler/mClockScheduler.cc