ctdb-ipalloc: Use a cumulative timeout for takeover run stages
authorMartin Schwenke <martin@meltin.net>
Fri, 27 May 2016 05:22:27 +0000 (15:22 +1000)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Jul 2016 03:00:15 +0000 (05:00 +0200)
commitc40fc62642ff5ac49b75e9af49c299e33dbc9073
tree366c5018073634766e3594a85dd2fca97524534c
parentff6a22757a82d5b3a1bdc7199f7cbde6576f217b
ctdb-ipalloc: Use a cumulative timeout for takeover run stages

RELEASE_IP sometimes times out because killing TCP connections can
take a long time.

The aim of the takeover timeout is actually to limit the total amount
of time for an IP takeover run.  So, calculate a combined timeout
offset once and use it for each of the RELEASE_IP, TAKEOVER_IP,
IPREALLOCATED stages.  This gives RELEASE_IP more time to kill TCP
connections but still limits the total time.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_takeover.c