Writing a health check
A health check is how a load balancer or monitor decides whether a server is fit to serve. A shallow one that always says yes is worse than none, because it hides the failure.
Test the real path
A good check exercises what the service actually needs: can it reach its database, its cache, its disk? A check that only confirms the process is listening will happily route traffic to a server that cannot answer a single real request.
But do not overreach
A check that tests too much — every downstream dependency — can fail the whole server because one non-critical thing is slow. Draw the line at what this instance must have to do its job, and no wider, or a minor blip takes everything out.
Wire it in
Point the load balancer at the check so a sick node is pulled from rotation automatically, and your monitoring at it so a human hears about it. Together they turn a health check into both a safety net and an alarm.
Still stuck? Mail support@novogara.com — an engineer answers, at any hour. Back to the knowledge base