ctdb-scripts: Change statd-callout to be more scalable
authorMartin Schwenke <martin@meltin.net>
Fri, 13 Feb 2015 09:55:43 +0000 (20:55 +1100)
committerAmitay Isaacs <amitay@samba.org>
Wed, 4 Mar 2015 09:42:27 +0000 (10:42 +0100)
commit500c6e194babe06b6aead7a053a9442c94db6e38
tree58c0fe5333048032879d8d5f3ff8e88a2841fb09
parent032441d9a2974584cde455e4dbd5cc33fe6a23c2
ctdb-scripts: Change statd-callout to be more scalable

Updating ctdb.tdb on each add-client, del-client and each delete
during notify was too ambitious.  Persistent transactions do not
perform well enough to do this.

Revert to having add-client and del-client create touch files.  Each
monitor event calls "statd-callout update" to convert touch files into
ctdb.tdb records.

Update testcases to do the "update" and add an extra test.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/60.ganesha
ctdb/config/events.d/60.nfs
ctdb/config/functions
ctdb/config/statd-callout
ctdb/tests/eventscripts/statd-callout.001.sh
ctdb/tests/eventscripts/statd-callout.002.sh
ctdb/tests/eventscripts/statd-callout.003.sh
ctdb/tests/eventscripts/statd-callout.004.sh
ctdb/tests/eventscripts/statd-callout.005.sh
ctdb/tests/eventscripts/statd-callout.006.sh
ctdb/tests/eventscripts/statd-callout.007.sh [new file with mode: 0755]