diff options
| author | Martin Schwenke <martin@meltin.net> | 2014-11-14 16:42:01 +1100 |
|---|---|---|
| committer | Amitay Isaacs <amitay@samba.org> | 2014-11-18 04:17:10 +0100 |
| commit | 4cd5be87daf531cb8a67f31b91cceeaf2c488127 (patch) | |
| tree | 562dd8a1016a804315a5551acc9c25fd88ddb5ad /ctdb/config | |
| parent | f51672f5149110025088ef6d1fc59fe7208d2aae (diff) | |
ctdb-scripts: Try to restart statd after every 10 failures
Also add and update tests for statd stack dumps. Update the existing
60.ganesha statd test to do more iterations. Duplicate the result as
a new test for 60.nfs.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/config')
| -rwxr-xr-x | ctdb/config/events.d/60.ganesha | 1 | ||||
| -rw-r--r-- | ctdb/config/nfs-rpc-checks.d/10.statd.check | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/config/events.d/60.ganesha b/ctdb/config/events.d/60.ganesha index df0912d526..150be1f159 100755 --- a/ctdb/config/events.d/60.ganesha +++ b/ctdb/config/events.d/60.ganesha @@ -230,6 +230,7 @@ case "$1" in p="rpc.statd" which $p >/dev/null 2>/dev/null && \ nfs_check_rpc_service "statd" \ + % 10 "verbose restart:b unhealthy" \ -ge 6 "verbose unhealthy" \ -eq 4 "verbose restart" \ -eq 2 "restart:b" diff --git a/ctdb/config/nfs-rpc-checks.d/10.statd.check b/ctdb/config/nfs-rpc-checks.d/10.statd.check index d738a3245e..526e238bcc 100644 --- a/ctdb/config/nfs-rpc-checks.d/10.statd.check +++ b/ctdb/config/nfs-rpc-checks.d/10.statd.check @@ -1,3 +1,4 @@ +% 10 verbose restart:b unhealthy -ge 6 verbose unhealthy -eq 4 verbose restart -eq 2 restart:b |
