struct

Raft::RPC::PreVote

Inherits Struct < Value < Object

Sent before a real election to check if the candidate would win, without incrementing its term. Prevents partitioned nodes from disrupting the cluster with inflated terms.

Constructors

new(term : UInt64, candidate_id : String, last_log_index : UInt64, last_log_term : UInt64)
Source

Instance methods

candidate_id

The ID of the candidate.

Source
last_log_index

Index of the candidate's last log entry.

Source
last_log_term

Term of the candidate's last log entry.

Source
term

The speculative next term (current term + 1, not yet committed).

Source
type
Source