change the reclock fail count to 19 monitor intervals before we shut down ctdbd
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 28 Sep 2009 04:12:59 +0000 (14:12 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 1 Oct 2009 23:53:32 +0000 (09:53 +1000)
config/events.d/01.reclock

index 7ca71edc119041177583ce4fb8687d0d6e4ee1f4..ccc007517ca19bb690edcbc6e38434e3ed33e188 100755 (executable)
@@ -12,7 +12,7 @@ PATH=/usr/bin:/bin:/usr/sbin:/sbin:$PATH
 # The size of this file represents the number of intervals that have
 # passed when we have tried to but failed to stat the reclock file.
 # after third failure the node becomes unhealthy
-# after the tenth failure the node we shutdown ctdbd
+# after the twenteth failure the node we shutdown ctdbd
 RECLOCKCOUNT="$CTDB_BASE/state/reclock-fail-count"
 
 case $cmd in 
@@ -24,7 +24,7 @@ case $cmd in
        echo -n 1 >> $RECLOCKCOUNT
 
        COUNT=`ls -ln $RECLOCKCOUNT | cut -d" " -f5`
-       [ $COUNT -gt 9 ] && {
+       [ $COUNT -gt 19 ] && {
                echo "Reclock file can not be accessed. Shutting down."
                sleep 1
                ctdb shutdown