How can a badly designed health probe turn degradation into a cascading failure?
Answer
A liveness check that depends on a slow downstream service can restart otherwise recoverable instances, adding cold-start load while remaining instances receive more traffic. An overly broad readiness check can remove every replica at once, and thresholds shorter than normal startup or garbage-collection pauses can cause repeated churn. Reproduce dependency latency and high load, inspect endpoint membership and restarts, tune timeouts and failure thresholds, and verify the system keeps a safe degraded mode.
Strong answer includes
- connects false liveness failures to restart amplification
- checks fleet-level traffic effects
- validates degraded operation under load
Practical example
A team configures a liveness probe that calls a downstream database and fails if the query takes longer than 2 seconds. During a database slowdown, every pod's liveness probe starts failing simultaneously, so Kubernetes restarts the entire fleet at once; the restarted pods then hit the still-struggling database during their own startup checks, extending the outage. In a chaos test, the engineer reproduces this by throttling the database's response time, observes the fleet enter a restart loop, then fixes it by moving the database check out of liveness and into a more tolerant readiness check.