Function simple_raft::core::quorum_size [−][src]
pub fn quorum_size(peer_count: usize) -> usize
Expand description
Computes the minimum size of a quorum of nodes in a Raft group.
Returns the minimum number of nodes out of a Raft group with total peer_count
nodes necessary to constitute a
quorum. A quorum of reachable nodes is needed to elect a leader and append to the distributed log.