[PATCH] CTDB recovery lock with arbitrary cluster mutex
martin at meltin.net
Tue Apr 26 03:45:40 UTC 2016
[Resending from correct address...can moderators please drop the other one?]
The attached patch set changes the CTDB recovery lock so that it can be
implemented using an arbitrary, external cluster mutex helper. At the
configuration level this looks like:
CTDB_RECOVERY_LOCK="!/path/to/my/cluster/mutex/helper [arg ...]"
Without the leading '!' CTDB continues to use the setting as the name
of a recovery lock file, which is passes to the provided fcntl(2) lock
Helpers can be written according to a simple, documented API.
Still to do:
* Drop support for setting the recovery lock at run-time, since it is
not possible to gracefully handle failure.
* Split the recovery lock into a cluster lock (held by election
winner) and a recovery lock (held only during recovery). Recovery
lock may not be needed in the long term but this depends on some
decisions about how election loss and in-progress recovery interact
with each other.
Please review and maybe push...
peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 88745 bytes
Desc: not available
More information about the samba-technical