Expand description

The heartbeats decoration continually appends heartbeat entries to the log.

Sending heartbeats serves two purposes.

  1. It establishes a minimum pace at which state is moving forward. This enables nodes to detect when they have been disconnected from the cluster.
  2. Heartbeats can automatically refresh a master lease. Having a stable master is helpful for any services that wish to delegate to it.

It should be noted that heartbeats uses Importance::MaintainLeadership to append heartbeats. As such it will never contend with other nodes that may be in the process of proposing some other entry for the same round.

Structs

Heartbeats decoration.

A static configuration.

Traits

Heartbeats configuration.

Extends NodeBuilder to conveniently decorate a node with Heartbeats.