1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/ctdb/include
Amitay Isaacs 1548ab99a2 ctdb-locking: Reduce logging in case of contention
Currently, every lock helper will log a message if it cannot get a lock.
This can spam the logs and overwhelm syslog if there are hundreds of
lock helpers waiting for contended record.

Instead keep track of the record for which we have already logged once
with specific timeout interval.  If we get timeout interval larger than
the previously logged interval, then log again once.  This will reduce
the amount of logs for contended records to a single log entry per 10
seconds per record.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-06-19 15:44:14 +02:00
..
common ctdb-daemon: Replace ctdb_message with srvid abstraction 2015-10-07 14:53:28 +02:00
public ctdb-build: Placeholder for public headers from lib/util 2015-10-07 14:53:28 +02:00
ctdb_client.h ctdb-client: Drop client code for eventscript controls 2016-12-18 14:23:23 +01:00
ctdb_private.h ctdb-locking: Reduce logging in case of contention 2017-06-19 15:44:14 +02:00
ctdb_protocol.h ctdb-daemon: Do not allow mixed ctdb versions in a cluster 2017-05-24 17:03:28 +02:00