Skill 3.1.4
Configuring load balancing to support cross-AZ services
Key Concepts
An ALB or NLB must be enabled in subnets in at least two AZs, and targets should be registered in each. Cross-zone load balancing distributes requests evenly across all targets regardless of AZ; it is on by default for ALB (and can be turned off per target group) and off by default for NLB and GWLB, where it can incur cross-AZ data charges.
Health checks on the target group remove unhealthy targets, and deregistration delay (connection draining) lets in-flight requests finish. When an Auto Scaling group uses the ELB health check type, instances that fail the load balancer health check are terminated and replaced. Zonal shift and zonal autoshift in Amazon Application Recovery Controller move traffic away from an impaired AZ.