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)
commit99b0d8b8ecc36dfc493775b9ebced54539c182d2
tree0516c2475f52880cb821c43eb6afa74e18be28df
parentc429394afbabaee09f9216dc743419adddf523ea
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>
config/ctdb.sysconfig
config/events.d/60.nfs