Consul uses raft for consensus.
We can look at the state of the raft peers via consul operator raft list-peers
. If there’s no leader, it won’t return, and you instead need to pass the -stale
flag to read from a follower.
Aug 25, 20241 min read
Consul uses raft for consensus.
We can look at the state of the raft peers via consul operator raft list-peers
. If there’s no leader, it won’t return, and you instead need to pass the -stale
flag to read from a follower.