summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-02-20 15:20:44 +1100
committerAmitay Isaacs <amitay@samba.org>2014-02-25 04:06:45 +0100
commitfcf846a795085d24468548165d92762a628ef54d (patch)
tree8fe1b1398e345719253e63683bd1c19385689507
parent695ece206b3365c99499e424e0dba43ce5de9300 (diff)
downloadsamba-fcf846a795085d24468548165d92762a628ef54d.tar.gz
samba-fcf846a795085d24468548165d92762a628ef54d.tar.xz
samba-fcf846a795085d24468548165d92762a628ef54d.zip
ctdb-eventscripts: Switch on dumping of stuck nfsd threads
This feature was added quite a while ago but was not enabled by default. It is a useful feature so enable it to dump stack traces of up to 5 stuck processes by default. This can be disabled by setting: CTDB_NFS_DUMP_STUCK_THREADS=0 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Tue Feb 25 04:06:45 CET 2014 on sn-devel-104
-rwxr-xr-xctdb/config/functions2
-rw-r--r--ctdb/doc/ctdbd.conf.5.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions
index 954e681cac..6efe60f0d3 100755
--- a/ctdb/config/functions
+++ b/ctdb/config/functions
@@ -734,7 +734,7 @@ startstop_nfs() {
# Dump up to the configured number of nfsd thread backtraces.
nfs_dump_some_threads ()
{
- [ -n "$CTDB_NFS_DUMP_STUCK_THREADS" ] || return 0
+ [ -n "$CTDB_NFS_DUMP_STUCK_THREADS" ] || CTDB_NFS_DUMP_STUCK_THREADS=5
# Optimisation to avoid running an unnecessary pidof
[ $CTDB_NFS_DUMP_STUCK_THREADS -gt 0 ] || return 0
diff --git a/ctdb/doc/ctdbd.conf.5.xml b/ctdb/doc/ctdbd.conf.5.xml
index 37b1cf94cb..d80bda6960 100644
--- a/ctdb/doc/ctdbd.conf.5.xml
+++ b/ctdb/doc/ctdbd.conf.5.xml
@@ -909,7 +909,7 @@ CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=9000
NFS during a restart.
</para>
<para>
- Default is 0.
+ Default is 5. Set this to 0 to disable this feature.
</para>
</listitem>
</varlistentry>