public interface RaftPolicy
Similarly we may want to customize when exactly we apply a modification to the state - with Raft a modification is only applied to the state when the modification is replicated to a majority of the replicas. The ability to apply a modification to the state before consensus would be useful in scenarios where you have only 2 nodes in a Raft cluster and one of them is down but you still want the RaftActor to apply a modification to the state.
Modifier and Type | Method and Description |
---|---|
boolean |
applyModificationToStateBeforeConsensus()
According to Raft consensus on a Raft entry is achieved only after a Leader replicates a log entry to a
majority of it's followers.
|
boolean |
automaticElectionsEnabled()
According to Raft a Follower which does not receive a heartbeat (aka AppendEntries) in a given period should
become a Candidate and trigger an election.
|
boolean automaticElectionsEnabled()
boolean applyModificationToStateBeforeConsensus()
Copyright © 2019 OpenDaylight. All rights reserved.