eventscripts: Add new option $CTDB_MONITOR_NFS_THREAD_COUNT
authorMartin Schwenke <martin@meltin.net>
Thu, 13 Jun 2013 00:17:20 +0000 (10:17 +1000)
committerMartin Schwenke <martin@meltin.net>
Thu, 13 Jun 2013 10:01:22 +0000 (20:01 +1000)
commitf408caea2ad46dab3f8f19b97eda8c8652bd5ff4
treea847cc6fe3577543023bc9982328828bee6bd77a
parent7513f0ba6110c160e3f207db0d233c94609ee45f
eventscripts: Add new option $CTDB_MONITOR_NFS_THREAD_COUNT

Consider the following example:

1. There are 256 nfsd threads configured.
2. 200 threads are "stuck" in system calls, perhaps waiting for the
   underlying filesystem when an attempt is made to restart NFS.
3. 56 threads exit when NFS is stopped.
4. 56 new threads are started when NFS is started.
5. 200 "stuck" threads exit leaving only 56 threads running.

Setting this option to "yes" makes the 60.nfs monitor event look for
this situation and try to correct it.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 99b0d8b8ecc36dfc493775b9ebced54539c182d2)
ctdb/config/ctdb.sysconfig
ctdb/config/events.d/60.nfs