Skip to main content

Module heartbeat

Module heartbeat 

Source

StructsΒ§

ElectionLeaderStepDown πŸ”’
HeartbeatSession πŸ”’
TonicHeartbeatRequestStream πŸ”’

EnumsΒ§

LeaderStepDownEvent πŸ”’

ConstantsΒ§

MAX_NODE_EPOCH_AHEAD πŸ”’
How far ahead of the leader’s clock a datanode epoch can be recorded.

TraitsΒ§

HeartbeatRequestStream πŸ”’
LeaderStepDown πŸ”’

FunctionsΒ§

accept_node_epoch πŸ”’
Returns whether node_epoch is not lower than the highest epoch recorded for the datanode, raising the record when it is higher. An epoch too far ahead of this metasrv’s clock is refused, since recording it would fence every later process.
get_node_id πŸ”’
handle_ask_leader πŸ”’
handle_request_stream_error πŸ”’
Handles request stream error by logging and forwarding the error to the client if possible.
header_only πŸ”’
wait_leader_step_down πŸ”’

Type AliasesΒ§

HeartbeatResponseResult πŸ”’