]> 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, 19 Jun 2025 11:52:34 +0000 (17:22 +0530)
commitea06d797bc0923cb79a76803586d61e85a8738d3
tree201beae09cafa553d774a042c157096725f49ad7
parentf9efe0b17348a7be5f4ebe00a90f5c0e88aabada
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>
(cherry picked from commit c318f80ee2eeefbba9865f07026e18c313cba558)
src/mon/MgrStatMonitor.cc
src/mon/MgrStatMonitor.h