ctdb-scripts: Only run unhealthy call-out when passing threshold
commite396eb9fbc7b843181cf095051221305ff3578ed
authorMartin Schwenke <martin@meltin.net>
Fri, 10 Jun 2022 00:32:01 +0000 (10 10:32 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 22 Jul 2022 07:32:54 +0000 (22 07:32 +0000)
tree45a6a528fd63c8b0d789b8f168f49d5fb6581f93
parent36bd6fd01f2c42d818c47f7b49567c40c1aeb5b6
ctdb-scripts: Only run unhealthy call-out when passing threshold

For memory usage, no need to dump all of this data on every failed
monitor event.  The first call will be enough to diagnose the problem.
The node will then go unhealthy, drop clients and memory usage should
then drop.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Jul 22 07:32:54 UTC 2022 on sn-devel-184
ctdb/config/events/legacy/05.system.script