From 86a7d641b5cb22874f558f798adbb451fd5ced00 Mon Sep 17 00:00:00 2001 From: Moiz Raja Date: Thu, 26 Feb 2015 19:26:20 -0800 Subject: [PATCH 1/1] BUG 2768 : Make election timeout factor 20 by default We may need a follow up patch to make shards in a single node cluster Leader by default. For now this fix will delay Shard startup by 10 seconds in a single node cluster. Change-Id: I5524c622f6eaeba2739d4cfe574f4ead759b8e10 Signed-off-by: Moiz Raja --- .../src/main/resources/initial/05-clustering.xml.conf | 4 ++++ .../src/main/resources/initial/datastore.cfg | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/05-clustering.xml.conf b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/05-clustering.xml.conf index 96ed7f1838..df6091b015 100644 --- a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/05-clustering.xml.conf +++ b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/05-clustering.xml.conf @@ -40,6 +40,7 @@ false + 20 @@ -50,6 +51,9 @@ dom:schema-service yang-schema-service + + 20 + diff --git a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/datastore.cfg b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/datastore.cfg index 8e03223a71..7df398355e 100644 --- a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/datastore.cfg +++ b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/datastore.cfg @@ -7,7 +7,7 @@ # The multiplication factor to be used to determine shard election timeout. The shard election timeout # is determined by multiplying shardHeartbeatIntervalInMillis with the shardElectionTimeoutFactor. -#shard-election-timeout-factor=2 +shard-election-timeout-factor=20 # The interval at which a shard will send a heart beat message to its remote shard. #shard-heartbeat-interval-in-millis=500 -- 2.36.6