Self-healing
Kubernetes liveness probes, autoscaling, automated runbooks, and the limits of self-healing.
Overview
Recover without a human
Self-healing means building systems that recover from failures without human intervention. Fewer pages mean fewer mistakes and more availability per engineer-hour invested.
Recovery happens in six layers, from the smallest unit to the largest: a crashed process is restarted, an instance is replaced, capacity scales, traffic fails over to another region or zone, the application degrades gracefully, and an automated runbook fixes a known problem. The next section walks through each one.
Key concepts
- Liveness vs readiness probe
- Autoscaler
- Circuit breaker
- Auto-remediation
- Probes can amplify outages
- Auto-remediation alerts
Interview questions
- How do you design Kubernetes probes correctly?
- When does auto-remediation HELP and when does it HURT?
- How do you design autoscaling policies?
Sign up free to read the full topic
More SRE topics
Start free on Cariara · Coding problems · System design studio