Francesco Romani has uploaded a new change for review. Change subject: DONTMERGE: guest monitor keepalives ......................................................................
DONTMERGE: guest monitor keepalives DEBUG ONLY: add periodic logging to easily confirm guest monitors are alive and running. This patch should never be merged. Change-Id: I34fda8a5bfd4402a75831d485315f802693552c4 Signed-off-by: Francesco Romani <[email protected]> --- M mom/GuestMonitor.py 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/89/39189/1 diff --git a/mom/GuestMonitor.py b/mom/GuestMonitor.py index b77bd0d..9ea0ee9 100644 --- a/mom/GuestMonitor.py +++ b/mom/GuestMonitor.py @@ -65,9 +65,16 @@ def run(self): try: self.logger.info("%s starting", self.getName()) + count = 0 while self._mon.should_run(): + if count == 10: + self.logger.info("%s running", self.getName()) + count = 0 + self._mon.collect() time.sleep(self._mon.interval) + + count += 1 except Exception: self.logger.exception("%s crashed", self.getName()) else: -- To view, visit https://gerrit.ovirt.org/39189 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I34fda8a5bfd4402a75831d485315f802693552c4 Gerrit-PatchSet: 1 Gerrit-Project: mom Gerrit-Branch: master Gerrit-Owner: Francesco Romani <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
