Introduce candidate election timeout divisor 63/80663/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 1 Mar 2019 20:45:48 +0000 (21:45 +0100)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 4 Mar 2019 13:19:38 +0000 (13:19 +0000)
commitf9bfd1462a1cb57a34a4e567c1931b629df901ea
treea7e351c9c8afcd11727cece7f1fd5e0db4490f8b
parent04107fb5efd9bd90809cb31897ec031bcb484df8
Introduce candidate election timeout divisor

When a candidate is waiting for an election to occur, it is sometimes
preferable to shorten the timeout interval down, so that we do not
wait the full election timeout.

This patch introduces the knob which serves to divide the normal
timeout -- i.e. it can be halved.

Change-Id: Idbe81c39bf7aecf56b9f13a242bea89a1a4ac4f1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/DefaultConfigParamsImpl.java
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/Candidate.java
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/datastore.cfg
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DatastoreContext.java