Health Checks
Cheat sheet · https://pcornel.dk/topic.php?topic=5922
Answer
Health Checks sample explicit liveness, readiness and dependency conditions to decide whether an automated component or workload can safely receive traffic or continue a workflow.
Remember
- Endpoint 200 ≠ system healthy.
- Liveness healthy ≠ readiness healthy.
- Readiness healthy ≠ every dependency or user path healthy.
- One healthy sample ≠ sustained health.
First checks
curl -fsS https://<svc>/health— HTTP healthsystemctl is-active <svc>— service- Synthetic transaction test — user path
Commands
curl -fsS <health-url>- Read-only/validation observation for HTTP success/failure and response body from a documented non-mutating health endpo…
Verify in this order
service → health endpoint/synthetic → status
Where it usually breaks
Health Checks prove only the signals and time window they sample; shallow checks can remain green while important user paths fail.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Health Checks validation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Criteria / input | Criteria, source revision, validator and exact target identity are explicit | A generic pass exists without versioned criteria or target correlation |
| Preconditions / operation | Current authoritative facts are bound to the exact operation | Stale preflight or requested state substitutes for execution-time facts |
| Effective outcome | Authoritative state/read-back and service-relevant evidence match the expected result | Tool/test/validator success substitutes for effective target or workload proof |
| Limits / next action | Coverage limits, unknowns and failures drive the next narrower check | Unknown evidence becomes pass, retries hide failures or broad success is inferred from one check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5922