Skip to content
Wade Womersley

wade.one

wade womersley – york based software engineer

  • Home
  • 2026
  • November
  • 19
  • A Health Check Should Explain Whether Restarting Will Help

A Health Check Should Explain Whether Restarting Will Help

Posted on November 19, 2026November 12, 2026 By
Programming

If the database goes away, restarting every application instance is unlikely to bring it back. Yet that is exactly the recovery plan a health endpoint can accidentally create. Put every dependency behind one green-or-red response, connect it to the restart mechanism and a shared outage becomes a collection of restarting processes.

I like the distinction in the Kubernetes probe documentation. Liveness helps decide whether a container needs restarting. Readiness determines whether it should receive traffic from matching Services. A startup probe gives initialization its own allowance before the other probes run. Those checks can share implementation where that makes sense, but the decisions they drive are different.

For liveness, I would ask what failure restarting this process can actually repair. A stuck application may qualify. An unavailable external API usually needs a different response. For readiness, check what the instance needs to serve the traffic it is about to receive. If it can still handle useful requests while an optional integration is down, marking the entire instance unavailable may throw away working functionality. If the database is essential to every request, pretending the instance is ready is not helpful either.

Keep the checks cheap and bounded, and test the actions they cause. Take a required dependency away in an isolated environment and watch whether the application stops receiving traffic, restarts or continues in a useful degraded state. Check recovery as well as failure. The important result is that traffic and restarts behave sensibly; the health endpoint returning the expected colour is only part of that.

Share:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit

Related

Comments

comments

Tags: health-checks kubernetes operations

Post navigation

❮ Previous Post: A Biscuit Tin Full of Sewing Supplies Is a Very Specific Betrayal

You may also like

PHP
PHP 8.5 Clone With Makes Value Objects Less Annoying
May 10, 2026
PHP
PHP 8.5 Deprecations Are a Good Upgrade Checklist
May 30, 2026
PHP
PHP 8.6 Partial Function Application Might Actually Make Callbacks Nicer
August 18, 2026
Programming
Cloudant’s Rather Awesome dbcopy for re-reducing the output of existing map/reduce data.
June 23, 2013
  • AI
  • artificial intelligence
  • Ego-centric
  • Events
  • Films
  • Food
  • Gaming
  • Gym
  • Hardware
  • Holidays
  • News
  • PHP
  • Programming
  • Random Stuff
  • Reviews
  • Science
  • SEO
  • Software
  • Software Engineer
  • Support
  • Uncategorized
  • Work

Copyright © 2026 wade.one.

Theme: Oceanly News Dark by ScriptsTown