Eventscripts: lower the fail/restart limits for nfsd.
authorMartin Schwenke <martin@meltin.net>
Tue, 11 Jan 2011 06:13:57 +0000 (17:13 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 11 Jan 2011 05:49:34 +0000 (16:49 +1100)
We were potentially leaving a node unable to serve requests for too
long.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/events.d/60.nfs

index f5530e31531d8c7165aa5f05a10d8a4253cb280e..79a071bab913f6ac71c74fdd42062b7c5c3bd0d2 100755 (executable)
@@ -89,13 +89,13 @@ case "$1" in
                        service_name="nfs_knfsd"
                        ctdb_counter_incr
 
-                       ctdb_check_counter_equal 10 || {
+                       ctdb_check_counter_equal 2 || {
                                echo "Trying to restart NFS service"
                                startstop_nfs restart >/dev/null 2>&1 &
                                exit 0
                        }
 
-                       ctdb_check_counter_limit 15 quiet >/dev/null
+                       ctdb_check_counter_limit 5 quiet >/dev/null
                ) || {
                        echo "$ctdb_check_rpc_out"
                        echo "Trying to restart NFS service"