]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-scripts: Add service_stats_command variable to NFS checks
authorMartin Schwenke <mschwenke@ddn.com>
Mon, 19 Feb 2024 10:42:11 +0000 (21:42 +1100)
committerMartin Schwenke <martins@samba.org>
Tue, 25 Jun 2024 03:16:37 +0000 (03:16 +0000)
commit5b7d17d44d9abdf2f3e15b225bd53b6d21ac41dd
tree8a066f0f2d2948eb01d879a6f11551456e37b034
parentd86f9ff7fdd042b76cf03cd84668c98391652f5e
ctdb-scripts: Add service_stats_command variable to NFS checks

When monitoring an RPC service, the rpcinfo command might time out
even though the service is making progress.  In this case, it is just
slow, so counting the timeout as a failure and potentially restarting
the service will not help.  The problem is determining if a service is
making progress.

Add a new NFS checks service_stats_command.  This command is intended
to run a statistics command.  The output is naively compared using
cmp(1).  If the output changes then rpcinfo failures are converted to
successes.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events/legacy/60.nfs.script
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.115.sh [new file with mode: 0755]
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.116.sh [new file with mode: 0755]
ctdb/tests/UNIT/eventscripts/scripts/60.nfs.sh