BUG 2768 : Make election timeout factor 20 by default 13/15813/2
authorMoiz Raja <moraja@cisco.com>
Fri, 27 Feb 2015 03:26:20 +0000 (19:26 -0800)
committerMoiz Raja <moraja@cisco.com>
Wed, 4 Mar 2015 01:26:52 +0000 (17:26 -0800)
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 <moraja@cisco.com>
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/05-clustering.xml.conf
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/datastore.cfg

index 96ed7f183893e3900d7ad31a2f977e067c1aed04..df6091b015733235b5b8b3c8f1c7257d11677122 100644 (file)
@@ -40,6 +40,7 @@
                     </operational-schema-service>
                     <operational-properties>
                         <persistent>false</persistent>
+                        <shard-election-timeout-factor>20</shard-election-timeout-factor>
                     </operational-properties>
                 </module>
 
@@ -50,6 +51,9 @@
                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
                         <name>yang-schema-service</name>
                     </config-schema-service>
+                    <config-properties>
+                        <shard-election-timeout-factor>20</shard-election-timeout-factor>
+                    </config-properties>
                 </module>
 
                 <module>
index 8e03223a7163c9188c1cdc85fd5a6e75973312d1..7df398355e0ab0cb2c9e96329652c69261910857 100644 (file)
@@ -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