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>
</operational-schema-service>
<operational-properties>
<persistent>false</persistent>
+ <shard-election-timeout-factor>20</shard-election-timeout-factor>
</operational-properties>
</module>
<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>
# 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