Leave the node as UNHEALTHY this stops clients from accessing the node until
the reclock file can be accessed again
;;
monitor)
- ctdb_counter_incr "$RECLOCKCOUNT"
- ctdb_counter_limit "$RECLOCKCOUNT" 20 && {
- echo "Reclock file can not be accessed. Shutting down."
- sleep 1
- ctdb shutdown
- }
-
RECLOCKFILE=`ctdb -Y getreclock`
[ -z "$RECLOCKFILE" ] && {
# we are not using a reclock file
exit 0
}
+ ctdb_counter_incr "$RECLOCKCOUNT"
+
# try stat the reclock file as a background process
# so that we dont block in case the cluster filesystem is unavailable
(