]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src/common/options: add config option for availability score
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Tue, 6 May 2025 06:20:59 +0000 (11:50 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 19 Jun 2025 11:52:34 +0000 (17:22 +0530)
commit431d7323911a45a3311b7fc3958d0d647124e1b7
treec25664163a2d8fe8b1dac2507907151d5f31fc8c
parentda27661273991bea1c61fa5cbfb00d8673b9df61
src/common/options: add config option for availability score

This commit modifies src/common/options/mon.yaml.in to add a
new config option to enable/disable tracking availability
score. This config option can be modified dynamically at
runtime as well.

To enable tracking availability score, we can run the
following command:

  ceph config set mon enable_availability_tracking true

By default, tracking availability score is enabled.

To disable tracking availability score:

  ceph config set mon enable_availablity_tracking false

When the feature is turned off, invoking the
`availability-status` command will display an error, prompting
the user to turn on the feature using the config option.

Fixes: https://tracker.ceph.com/issues/71494
Signed-off-by: Shraddha Agrawal <shraddhaag@ibm.com>
(cherry picked from commit 9ccef704550148b63f973ce69ab2147f7a162ba4)
src/common/options/mon.yaml.in
src/mon/OSDMonitor.cc