Skill 3.3.3
Configuring a load balancer to recover from backend failure
Key Concepts
Target group health checks define the protocol, path, port, interval, timeout, healthy and unhealthy thresholds and success codes. A health check endpoint should test the application's ability to serve requests, but shallow checks avoid marking every target unhealthy because a shared dependency is slow. If all targets are unhealthy, the ALB fails open and sends traffic to all of them.
Combine with an Auto Scaling group using ELB health checks and a suitable health check grace period, so failed instances are replaced and new ones have time to start. For multiple Regions, Route 53 health checks on each load balancer fail traffic over to another Region when a whole backend fails.