box.info.election
-
box.info.
election
Show the current state of a replica set node in regards to leader election, namely, election state (mode), election term, vote in the current term, and the leader ID of the current term.
Example:
tarantool> box.info.election --- - state: follower vote: 0 leader: 0 term: 1 ...
IDs in the
box.info.election
output are the replica IDs visible in thebox.info.id
output on each node and in the_cluster
space.State can be
leader
,follower
, orcandidate
. For more details, refer to description of the leader election process. When election is enabled, the node is writable only in theleader
state.vote
equals0
means the node didn’t vote in the current term.leader
equals0
means the node doesn’t know who a leader in the current term is.