ctdb-scripts: New consistent system memory and swap monitoring
commitb6a0e4b85699241ba90f25f4c605cbb7a6fc2146
authorMartin Schwenke <martin@meltin.net>
Mon, 3 Aug 2015 07:22:08 +0000 (3 17:22 +1000)
committerAmitay Isaacs <amitay@samba.org>
Sat, 29 Aug 2015 15:06:25 +0000 (29 17:06 +0200)
treebc2309f36fc8ca36dc69e44483908a6c9ee09f52
parent02fa6c3d106e8fbf0e685afafa5e6a9bc0c3d22d
ctdb-scripts: New consistent system memory and swap monitoring

New variables CTDB_MONITOR_MEMORY_USAGE and CTDB_MONITOR_SWAP_USAGE.
Both take a pair of <warn_threshold>:<unhealthy_threshold> where each
theshold is specified as a percentage.

This adds a callout to check_thresholds() that is run when the
unhealthy threshold is reached.

Add some combination tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/05.system
ctdb/doc/ctdbd.conf.5.xml
ctdb/tests/eventscripts/05.system.monitor.011.sh
ctdb/tests/eventscripts/05.system.monitor.012.sh
ctdb/tests/eventscripts/05.system.monitor.013.sh
ctdb/tests/eventscripts/05.system.monitor.014.sh
ctdb/tests/eventscripts/05.system.monitor.015.sh
ctdb/tests/eventscripts/05.system.monitor.016.sh [new file with mode: 0755]
ctdb/tests/eventscripts/05.system.monitor.017.sh [new file with mode: 0755]
ctdb/tests/eventscripts/scripts/local.sh