Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

Health checks have caused outages in many organisations, for example cascading restarts or traffic removal during dependency failures. What principles would you set for health signals across the company for years to come?

Health signals are not reports for humans; they are inputs to automation that restarts pods and removes them from traffic, so each signal must answer exactly the question that automation acts on. My principles would be: liveness only for internal states that a restart can fix, readiness only for the ability to serve, never let one shared dependency take every instance out of service, keep probe settings in shared templates that we revisit after every incident, and show dependency status on dashboards rather than in probes.

Why this question is asked

Many large outages were not started by the failing database or the slow downstream service. They were started by health checks that reacted to that failure: every pod reported DOWN, the orchestrator restarted all of them at once, and the restart storm turned a small problem into a full outage. Interviewers ask this question at the most senior level because the answer shows whether we see health checks as a control system with real consequences, and whether we can turn painful lessons into standards that hold for years across hundreds of services. In this answer, we will recap what consumes health signals, walk through the failure patterns that cause outages, set out the principles one by one with the reasoning behind each, and see how to make those principles stick in a large organisation.

1A Quick Recap: Who Reads a Health Signal?

A health signal is an answer to a yes or no question that some piece of software asks about our service. In a Spring Boot service that answer comes from Actuator's health endpoint, which combines health indicators, small components that each check one thing such as the database connection or disk space, into an overall status like UP or DOWN.

The important part is who reads it. In Kubernetes, the kubelet, the agent on each node, calls the liveness probe and restarts the container when it fails a few times in a row. It calls the readiness probe and removes the pod from the Service's endpoints, the list of addresses that receive traffic, when that fails. Load balancers, service meshes and deployment controllers read similar signals and decide whether to send traffic or continue a rollout. So a health signal is not information; it is a command. When the signal says DOWN, something will act on it.

2How Health Checks Turn a Small Failure Into an Outage

Consider a typical setup that looks reasonable at first sight. Forty pods of an order service include the database health indicator in their liveness probe. The database has a 90 second failover. During that failover every pod reports DOWN, so after three failed probes the kubelet restarts all forty pods. They come back, the database is still failing over, they fail again, and they enter a crash loop with growing back-off delays. When the database is healthy again, the pods are waiting out their back-off and the service stays down for several more minutes, far longer than the original 90 seconds.

The readiness version of the same mistake is quieter but just as bad. If readiness includes a shared dependency such as a payment gateway, all forty pods go not ready at the same moment. The Service then has zero endpoints, and callers get connection errors instead of the graceful error message our code would have returned for the one feature that needs payments.

Step throughHow a dependency failure becomes a restart storm
  1. Database starts a 90 s failover
  2. Every pod's health includes the databaseall 40 report DOWN
  3. Is the database in the liveness probe?
    Yeskubelet restarts all 40 podsNopods stay up and serve degraded
  4. Restarted pods fail again and back offcrash loop, warm caches lost
  5. Database recovers, pods still waitingoutage lasts minutes longer than the cause

5 steps in order. Play them, or step through them one at a time.

3Principle 1: Each Signal Must Match the Action It Triggers

The first principle is the one every other rule follows from. Before adding a check to a probe, we ask what the automation will do when the check fails, and whether that action helps. A restart helps when the process itself is broken: a deadlock, a corrupted internal state, an exhausted resource that only a fresh JVM releases. A restart does not help when the database is down, because the new process will find the same database. Removing a pod from traffic helps when that particular pod cannot serve while others can. It does not help when no pod can serve, because removing all of them just changes the error the client sees.

So liveness should only fail for states inside the process that a restart can repair, and Spring Boot's LivenessState, which is CORRECT or BROKEN, is designed exactly for that. Readiness should fail when this instance cannot usefully serve right now: it is still starting, it is shutting down, or it has lost something local that it truly needs. Boot's ReadinessState, ACCEPTING_TRAFFIC or REFUSING_TRAFFIC, models this.

4Principle 2: No Shared Dependency May Remove Every Instance

The second principle protects against correlated failure. A dependency shared by all instances, such as one database cluster, one cache, one downstream API, fails for all of them at once. If its health indicator is in readiness, it turns a partial failure into a total one. My rule would be that shared dependencies stay out of liveness entirely, and only enter readiness when the service is truly useless without them and the team has written down why. Even then, the service should prefer degrading: returning a clear error or cached data for the affected features while staying in rotation.

The reasoning a senior engineer uses here is about blast radius. A per-pod signal should vary per pod. A signal that, by its nature, is the same for every pod tells the orchestrator nothing about which pod to prefer, so it can only ever lead to all or nothing decisions, and all is the dangerous one.

5Principle 3: Separate Health for Automation From Health for People

Engineers like to see that the database, the cache and the message broker are reachable, and that need is real. The mistake is to serve it through the same endpoint the kubelet reads. I would separate them. The probe groups, liveness and readiness, contain only the checks automation should act on. The full health endpoint, with details shown to authorised operators, plus metrics and dashboards, shows the status of every dependency for humans. Alerts fire from those metrics and page a person, who can decide what to do with context the kubelet does not have.

Spring Boot makes this separation cheap with health groups: we configure which indicators belong to the readiness and liveness groups, and every other indicator still appears on /actuator/health for people and dashboards.

Properties
# shared starter defaults: probes contain only what automation should act on
management.endpoint.health.probes.enabled=true
management.endpoint.health.group.liveness.include=livenessState
management.endpoint.health.group.readiness.include=readinessState
# db, redis, kafka and so on still show on /actuator/health for dashboards
management.endpoint.health.show-details=when-authorized

6Principle 4: Probe Settings Live in Shared Templates and Change After Incidents

Principles on a wiki do not survive years of staff turnover. They survive when they are the default. I would put the probe configuration into the platform's Spring Boot starter and the shared Helm chart or deployment template, so a new service gets correct groups, timeouts and thresholds without writing anything. Teams can override them, but an override shows up in review and in a fleet report.

Then I would make probe behaviour part of every incident review. The question is always the same: did a health signal make this incident larger or longer? If yes, we change the template, not just the one service, so the lesson reaches every team.

Who acts on each signal, and what belongs in it
SignalAction on failureBelongs in itNever in it
LivenessRestart the containerDeadlock, broken internal stateDatabases, downstream APIs
ReadinessRemove pod from trafficStarting, draining, local resourcesShared deps without a written reason
StartupRestart if start never endsContext refresh and runners doneAnything slow to recover
Full health pageNothing automaticEvery dependency, with detailsNothing hidden from operators

7Follow-up questions

Is it ever right to put the database in readiness?

Sometimes, for a service that cannot do anything without its own database and whose callers handle connection failures better than error responses. Even then, I would ask the team to write down the reason and to confirm what happens when every pod goes not ready at once. For most services, returning a fast error for the affected requests while staying in rotation is the safer behaviour.

How would you know whether teams follow these principles?

I would generate a fleet report from deployment manifests and from each service's health group configuration, listing services whose liveness or readiness groups include more than the standard indicators. Combined with incident reviews, that report shows where the risk sits without relying on everyone remembering the rules.

8Conclusion

In this answer, we saw that health signals are commands to automation, which is why careless checks cause restart storms and empty load balancer pools. The principles follow from that: match each signal to the action it triggers, keep liveness to internal state and readiness to the ability to serve, never let a shared dependency remove every instance, give humans a separate view of dependency health, and keep the settings in shared templates that change after every incident.

What to say in the interviewAbout 90 seconds aloud

Open with

I start from the fact that health signals are not information, they are triggers. Liveness failure means a restart, readiness failure means removal from traffic, so each signal must only fail when that action helps.

Then, if they want more

Liveness covers internal states a restart can fix, like a deadlock or broken state, and never external dependencies. Readiness covers whether this instance can serve right now, such as starting up or draining.

The rule I care most about is that a shared dependency must never be able to take every instance out of service, because that turns a 90 second database failover into a crash loop or an empty load balancer pool.

For people, I keep a separate view: the full health endpoint with details for operators, plus metrics and alerts, so engineers still see dependency status without the kubelet acting on it. To make this last for years, I would not rely on documents.

I would put the health groups and probe settings into the platform starter and the shared Helm chart, so every new service gets safe defaults, show overrides in a fleet report, and add one question to every incident review: did a health check make this worse?

When the answer is yes, we change the template for everyone, not just the one service.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Boot reference, Actuator
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Health checks have caused outages in many organisations, for example cascading restarts...": https://scrivio-interview-library.netlify.app/spring-boot/actuator/7b38db0153/