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)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 20 Jun 2013 02:56:29 +0000 (12:56 +1000)
commit6400e3bae96771229c22d2e88d923d16e807d456
tree7dd8ebd0392a6b344cebd989b3d6bc38395a0fe1
parent6e46fe96d46332cab6e8f9b6075c2f4ba6ceec04
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>
(cherry picked from commit 99b0d8b8ecc36dfc493775b9ebced54539c182d2)

Conflicts:
config/events.d/60.nfs
config/ctdb.sysconfig
config/events.d/60.nfs