Expand description
Event-driven implementation of the Pacemaker subprotocol.
Main type: Pacemaker.
Structsยง
- Pacemaker ๐A single participant in the Pacemaker subprotocol.
- Configuration variables for the
Pacemakerstruct. - Pacemaker
State ๐In-memory state of aPacemaker. - View
Info ๐Describes a view (most often the current view), in terms of its view number and its view deadline (the instant in time in which the view should end if no progress was made).
Enumsยง
- Enumerates the different ways a
Pacemaker::extend_viewcall can fail. - Enumerates the different ways a call to any of
Pacemakerโs methods can fail. - Enumerates the different ways a
Pacemaker::update_viewcall can fail.
Functionsยง
- epoch ๐Compute the current epoch based on the current
viewand the configuredepoch_length. - is_
epoch_ ๐change_ view Check whetherviewis an epoch-change view given the configuredepoch_length. - Deterministically select a replica in
validator_setto become the leader ofviewusing the Interleaved WRR algorithm.