Class LeaderChecker
java.lang.Object
org.elasticsearch.cluster.coordination.LeaderChecker
public class LeaderChecker
extends java.lang.Object
The LeaderChecker is responsible for allowing followers to check that the currently elected leader is still connected and healthy. We are
fairly lenient, possibly allowing multiple checks to fail before considering the leader to be faulty, to allow for the leader to
temporarily stand down on occasion, e.g. if it needs to move to a higher term. On deciding that the leader has failed a follower will
become a candidate and attempt to become a leader itself.
-
Field Summary
Fields Modifier and Type Field Description static Setting<org.elasticsearch.common.unit.TimeValue>
LEADER_CHECK_INTERVAL_SETTING
static Setting<java.lang.Integer>
LEADER_CHECK_RETRY_COUNT_SETTING
static Setting<org.elasticsearch.common.unit.TimeValue>
LEADER_CHECK_TIMEOUT_SETTING
-
Method Summary
Modifier and Type Method Description DiscoveryNode
leader()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
LEADER_CHECK_INTERVAL_SETTING
-
LEADER_CHECK_TIMEOUT_SETTING
-
LEADER_CHECK_RETRY_COUNT_SETTING
-
-
Method Details
-
leader
-