Heartbeat
PronunciationHART-beet
Definition
A heartbeat is a small signal a service sends at regular intervals to say "I am alive". If the heartbeats stop, others assume it has failed.
Where you hear it
In clusters, Kubernetes and database replication, job workers, and monitoring alerts about missing heartbeats.
Examples
A node that misses three heartbeats is marked down.
The worker sends a heartbeat every 10 seconds so the job isn't reassigned.
The monitor alerts us when the worker's heartbeat stops for more than a minute.
Common mistake
Setting the timeout too short. A brief network hiccup then looks like a dead node and triggers a needless failover.
Don't confuse with
A health check, where something outside asks the service if it is healthy. A heartbeat is sent by the service itself.
Say it at work
- In a meeting or chat
We're missing heartbeats from worker 3.
- In an email or ticket
Heartbeat interval 5 seconds, timeout 15.
Keep exploring
More in Architecture & Design