From 430ae8487741aba154c724fa40ed9020758bd7c6 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 18 Sep 2013 17:07:32 +1000 Subject: [PATCH] recoverd: Disable takeover runs on other nodes for 5 minutes 60 seconds might not be long enough to kill all connections and release IPs. Signed-off-by: Martin Schwenke (This used to be ctdb commit 71080676bb4acbd0d9b595a30cf7fe6dddbf426f) --- ctdb/server/ctdb_recoverd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c index cb492f5d179..2e8ba589605 100644 --- a/ctdb/server/ctdb_recoverd.c +++ b/ctdb/server/ctdb_recoverd.c @@ -1699,10 +1699,10 @@ static bool do_takeover_run(struct ctdb_recoverd *rec, nodes = list_of_connected_nodes(rec->ctdb, nodemap, rec, false); - /* Disable for 60 seconds. This can be a tunable later if + /* Disable for 5 minutes. This can be a tunable later if * necessary. */ - dtr.data = 60; + dtr.data = 300; for (i = 0; i < talloc_array_length(nodes); i++) { if (ctdb_client_send_message(rec->ctdb, nodes[i], CTDB_SRVID_DISABLE_TAKEOVER_RUNS, -- 2.11.4.GIT