]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: report health check changes immediately
authorNoah Watkins <nwatkins@redhat.com>
Thu, 26 Jul 2018 17:52:34 +0000 (10:52 -0700)
committerNoah Watkins <nwatkins@redhat.com>
Fri, 27 Jul 2018 19:27:31 +0000 (12:27 -0700)
commit3068c4290166076093119d1dc08a2c0fada8235f
tree824c3f074306d57b0f2332a23ddbbbad11efd531
parent934443e2452f97184448210d11850285990b4384
mgr: report health check changes immediately

Currently beacons and reports are sent periodically, which means that
health check changes made by modules are only visible to the monitor
after a delay. This patch sends a health report immediately after a
change occurs.

1. decouple scheduling of reports from beacons
2. moves report scheduling into DaemonServer
3. exposes a "send now" option
4. health check change detection triggers immediate report

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
src/mgr/ActivePyModule.h
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/Mgr.cc
src/mgr/Mgr.h
src/mgr/MgrStandby.cc
src/mgr/PyModuleRegistry.cc
src/mgr/PyModuleRegistry.h