summaryrefslogtreecommitdiffstats
path: root/python/samba/tests/common.py
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2015-03-04 15:36:05 +1100
committerMichael Adam <obnox@samba.org>2015-03-05 12:06:44 +0100
commit3f97be6d0fc166ccc3c97b7f71a01a4f9adb5ddd (patch)
treea6464a75a0ffc76d1e0d3febfe41ff4f1a53a491 /python/samba/tests/common.py
parent956d1dbfd91615032de337b0d84b40c16657b8c1 (diff)
downloadsamba-3f97be6d0fc166ccc3c97b7f71a01a4f9adb5ddd.tar.gz
samba-3f97be6d0fc166ccc3c97b7f71a01a4f9adb5ddd.tar.xz
samba-3f97be6d0fc166ccc3c97b7f71a01a4f9adb5ddd.zip
ctdb-locking: Back-off from logging every 10 seconds
If ctdb_lock_helper cannot get a lock within 10 seconds, ctdb daemon logs a message and invokes an external debug script. This is repeated every 10 seconds. In case of a contention or on a loaded system, there can be multiple ctdb_lock_helper processes waiting to get lock on record(s). For each lock request taking longer, ctdb daemon will flood the log every 10 seconds. Instead of logging aggressively every 10 seconds, relax logging to every 100s and 1000s if the elapsed time has exceeded 100s and 1000s respectively. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Mar 5 12:06:44 CET 2015 on sn-devel-104
Diffstat (limited to 'python/samba/tests/common.py')
0 files changed, 0 insertions, 0 deletions