Heartbeat
Liveness detection via periodic signals
Mechanism
Periodic Liveness Signal: An entity emits Signal (Heartbeat) every interval I. Missing K consecutive heartbeats triggers failure detection. Heartbeat may include health metrics. Receiver tracks last-seen timestamp. It feeds into the Quorum detector, allowing the collective to identify and prune dead nodes.
Invariants
- Missing `timeout_multiplier` consecutive intervals triggers failure DETECTION, which is a suspicion and not a fact about the emitter.
- Emission interval stays within `interval`.
Parameters
- interval: type=Duration, range=[100ms, 60s], description=Time between heartbeats
- timeout_multiplier: type=Integer, range=[2, 5], description=Missed beats before failure
Preconditions
- Active component
- Monitor
Postconditions
- Liveness confirmed
Failure modes
- False failure detection: the node is alive and its heartbeat was delayed, so absence of signal was read as absence of the emitter.
- Heartbeat outlives usefulness: the emitter is alive and the work it was doing is not, so liveness is reported while progress has stopped.
Where this came from
—
Builds on
Used by
- Delegate composes_with
- ExplainBeacon references
- QuorumPulse references
- Responsibility references
- TaskLifecycle references
Identity
- Ref:
Heartbeat#c5df - Hash: sema:Heartbeat#mh:SHA-256:c5dfefe91d5460716f19e001290b47c3853173b17f0b6914793f6f51a41903ef
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository