Health Check
PronunciationHELTH chek
Definition
A small endpoint, often /health, that tells tools whether the app is running properly.
Where you hear it
Load balancers, Kubernetes, and monitoring tools.
Examples
The load balancer calls
/healthevery 10 seconds.The health check fails, so the server is removed from rotation.
The health check returns 200 only when the database answers a ping.
Common mistake
A health check that always returns OK. It should also check important dependencies such as the database.
Don't confuse with
A health check tests if the app is currently running and ready, while a metric measures performance data like CPU and memory usage over time.
Say it at work
- In a meeting or chat
We need to update our health check so it actually tests the database connection.
- In an email or ticket
Please ensure the health check endpoint returns a 503 status when the service dependencies are down.
Keep exploring
More in DevOps & Cloud