← Lessons

quiz vs the machine

Gold1500

Networking

The Cross Zone Load Balancing

Why uneven targets per zone can skew your traffic.

5 min read · core · beat Gold to climb

The Zone Imbalance Problem

A load balancer often has a node in each availability zone. Without cross zone load balancing, each zone node only sends traffic to targets in its own zone, which can spread load unevenly when zones hold different numbers of targets.

How The Skew Happens

Imagine two zones, one with eight targets and one with two.

  • Each zone node receives half of incoming traffic if clients resolve evenly.
  • The zone with two targets then gives each target a larger share than the zone with eight.
  • Enabling cross zone balancing lets any node send to all targets, smoothing the load.

The Trade Off

Cross zone balancing evens out per target load but can add cross zone data transfer, which may carry a charge. Some balancer types enable it by default while others make it optional, so it pays to know the behavior of the type you are using before assuming even distribution.

Key idea

Cross zone load balancing lets every balancer node reach targets in all zones, which evens out per target load when zones have different target counts, at the possible cost of cross zone transfer.

Check yourself

Answer to earn rating on the learn ladder.

1. What problem does cross zone load balancing fix?

2. What is the trade off of enabling cross zone load balancing?