Expand description
Mesh liveness and round-trip time: a ping/pong between verified peers.
Each node pings every verified peer on the PING_TOPIC control topic
every LivenessConfig::interval. A pong only counts when it arrives on
the verified connection of the peer that was pinged and echoes a nonce
this node actually sent and has not yet seen answered. A counted pong
feeds the heartbeat tracker (MeshRuntime::record_heartbeat, which
drives Alive/Recovered and cluster last_heartbeat) and a smoothed
RTT. A pong may carry the responder’s LoadSample (fleet P3); old peers
send none. Unverified peers are never pinged, and their pings and pongs
are ignored. Everything here is in memory; nothing is persisted.
Structs§
- Liveness
- The liveness service for one
MeshRuntime. - Liveness
Config - Tunables.
- Peer
Liveness - What this node knows about one peer’s liveness.