diff options
| author | Martin Schwenke <martin@meltin.net> | 2013-06-13 10:17:20 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2013-06-13 20:01:22 +1000 |
| commit | f408caea2ad46dab3f8f19b97eda8c8652bd5ff4 (patch) | |
| tree | a847cc6fe3577543023bc9982328828bee6bd77a /ctdb/config/ctdb.sysconfig | |
| parent | 7513f0ba6110c160e3f207db0d233c94609ee45f (diff) | |
| download | samba-f408caea2ad46dab3f8f19b97eda8c8652bd5ff4.tar.gz samba-f408caea2ad46dab3f8f19b97eda8c8652bd5ff4.tar.xz samba-f408caea2ad46dab3f8f19b97eda8c8652bd5ff4.zip | |
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)
Diffstat (limited to 'ctdb/config/ctdb.sysconfig')
| -rw-r--r-- | ctdb/config/ctdb.sysconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ctdb/config/ctdb.sysconfig b/ctdb/config/ctdb.sysconfig index 6f58e8fc8c..25ad2aef95 100644 --- a/ctdb/config/ctdb.sysconfig +++ b/ctdb/config/ctdb.sysconfig @@ -129,6 +129,19 @@ CTDB_RECOVERY_LOCK="/some/place/on/shared/storage" # CTDB_MONITOR_FREE_MEMORY_WARN=100 # CTDB_MONITOR_FREE_MEMORY=10 +# Should the 60.nfs monitor event try to correct the number of nfsd +# threads? This works around a limitation in some NFS initscripts +# where some threads can be stuck in host filesystem calls (perhaps +# due to slow storage), a restart occurs, some threads don't exit, the +# start only adds the missing number of threads, the stuck threads +# exit, and the result is a lower than expected thread count. Note +# that if you must also set $RPCNFSDCOUNT (RedHat/Debian) or +# $USE_KERNEL_NFSD_NUMBER (SUSE) in your NFS configuration so the +# monitoring code knows how many threads there should be - if neither +# of these are set then this option will be ignored. The default is +# to not do this check. +# CTDB_MONITOR_NFS_THREAD_COUNT="yes" + # When set to yes, the CTDB node will start in DISABLED mode and not host # any public ip addresses. The administrator needs to explicitely enable # the node with "ctdb enable" |
