Expand description
SWIM-style heartbeat and failure detection for mesh (K6.5).
Implements a simplified SWIM protocol for detecting node failures in the mesh network. Each tick, a random peer is pinged directly; if no response, indirect probes are sent via other peers.
Structs§
- Heartbeat
Config - Heartbeat configuration.
- Heartbeat
Tracker - Heartbeat tracker managing all peers.
- Mesh
Clock Sync - Mesh time synchronization state for a node.
- Peer
Heartbeat - Heartbeat tracker for a single peer.
- Peer
Metrics - Observability metrics for a mesh peer, used for affinity scoring.
- Ping
Request - Ping request.
- Ping
Response - Ping response.
Enums§
- Clock
Source - Clock source quality (higher = better, wins authority election).
- Heartbeat
State - Node health state from heartbeat monitoring.
Functions§
- system_
time_ us - Get current system time in microseconds since Unix epoch.