summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-09-18 17:07:32 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-09-19 12:58:32 +1000
commit430ae8487741aba154c724fa40ed9020758bd7c6 (patch)
tree28674bcb2e8aef0d9bb904f576b1d6ade3ee545f
parent07d3a1b234c59837fbc4bca96a539c09e1a40435 (diff)
downloadsamba-430ae8487741aba154c724fa40ed9020758bd7c6.tar.gz
samba-430ae8487741aba154c724fa40ed9020758bd7c6.tar.xz
samba-430ae8487741aba154c724fa40ed9020758bd7c6.zip
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 <martin@meltin.net> (This used to be ctdb commit 71080676bb4acbd0d9b595a30cf7fe6dddbf426f)
-rw-r--r--ctdb/server/ctdb_recoverd.c4
1 files 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,