]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
MgrStatMonitor: add config observer
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 22 May 2025 09:16:50 +0000 (14:46 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 12 Jun 2025 10:49:50 +0000 (16:19 +0530)
commitc318f80ee2eeefbba9865f07026e18c313cba558
tree8804573da860b405309f406acd3f1bf446b504c8
parent017c9b9f4fa0d3286d52b7acb7df912327b1f836
MgrStatMonitor: add config observer

This commit adds a config observer to MgrStatMonitor so we
can track when a user enables/disables enable_availability_tracking
config option. The time difference between disabling and then
enabling the config option will be used to offset the uptime
and/or downtime from the availability score feature.

Fixes: https://tracker.ceph.com/issues/71494
Signed-off-by: Shraddha Agrawal <shraddhaag@ibm.com>
src/mon/MgrStatMonitor.cc
src/mon/MgrStatMonitor.h