Pcornel
Automation · Validation

Health Checks

Cheat sheet · https://pcornel.dk/topic.php?topic=5922

Back to the Topic

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 health
  • systemctl 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

BoundaryHealthy evidenceSuspicious evidence
Criteria / inputCriteria, source revision, validator and exact target identity are explicitA generic pass exists without versioned criteria or target correlation
Preconditions / operationCurrent authoritative facts are bound to the exact operationStale preflight or requested state substitutes for execution-time facts
Effective outcomeAuthoritative state/read-back and service-relevant evidence match the expected resultTool/test/validator success substitutes for effective target or workload proof
Limits / next actionCoverage limits, unknowns and failures drive the next narrower checkUnknown 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

Confirmation

Confirm action

Continue?