]> git.apps.os.sepia.ceph.com Git - ceph.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, 12 Jun 2025 10:49:50 +0000 (16:19 +0530)
commit9ccef704550148b63f973ce69ab2147f7a162ba4
treeb7596e8daa36e0f0c12848cecd9534fda9fd5db4
parentfd3d6bcc7196fcc669ff35a9cab7f086658cacc7
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>
src/common/options/mon.yaml.in
src/mon/OSDMonitor.cc