SRE & Observability (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What are Health Checks: Liveness vs Readiness vs Startup Probes?
senior Levelsre-observabilityAdvanced Internals
In Simple Words: In container orchestrators (Kubernetes):
- Startup Probe: Checks if the container has finished initial slow bootstrapping (e.g. JVM warmup). Disables liveness checks until passed.
- Liveness Probe: Checks if the container is healthy. If it fails, Kubernetes kills and restarts the container.
- Readiness Probe: Checks if the container is ready to accept user network traffic. If it fails, Kubernetes removes the pod from the Load Balancer Service endpoints without restarting it (allows pod to finish warming up or draining buffers).