By using at least two subnets in different Availability Zones (AZs) with the Cross-Zone Load Balancing feature enabled, your Amazon Gateway Load Balancers (GWLBs) can distribute the traffic evenly across all registered targets.
By default, the Cross-Zone Load Balancing feature is disabled, therefore each Gateway Load Balancer node distributes traffic across the registered targets in its Availability Zone (AZ) only. If a target becomes unhealthy, the load balancer node continues to send existing requests to the unhealthy target and the traffic is nulled. The Gateway Load Balancer (GWLB) node sends new requests to healthy targets in the same Availability Zone. If no healthy targets are found, all traffic is nulled. Once the Cross-Zone Load Balancing feature is enabled and configured, if the load balancer node does not find a healthy target in the same Availability Zone, it can send new requests to healthy targets in a different Availability Zone. This provides fault tolerance and consistent traffic flow for your load balancers.
Audit
To determine if Cross-Zone Load Balancing is enabled for your Gateway Load Balancers (GWLBs), perform the following actions:
Remediation / Resolution
To enable the Cross-Zone Load Balancing feature for your existing Amazon Gateway Load Balancers (GWLBs), perform the following actions:
References
- AWS Documentation
- What is a Gateway Load Balancer?
- Gateway Load Balancers
- AWS Command Line Interface (CLI) Documentation
- describe-load-balancers
- describe-load-balancer-attributes
- modify-load-balancer-attributes