Understanding Cross Zone Load Balancing

TechOps Examples

Hey — It's Govardhana MK 👋

Along with a use case deep dive, we identify the remote job opportunities, top news, tools, and articles in the TechOps industry.

IN TODAY'S EDITION

🧠 Use Case

  • Understanding Cross Zone Load Balancing

🚀 Top News

👀 Remote Jobs

📚️ Resources

🛠️ TOOL OF THE DAY

bananas - A simple and easy to use screen sharing tool for Mac, Windows, and Linux (without the need for an account or any server infrastructure).

🧠 USE CASE

Understanding Cross Zone Load Balancing

If you’re working with cloud infrastructure, you’ve probably configured a load balancer before.

Most of you likely know what cross zone load balancing does, but for those hearing about it for the first time, or just looking to solidify your understanding, here’s a simple explanation.

In a multi AZ setup, cross zone load balancing ensures that traffic is distributed evenly across all targets, regardless of the availability zone (AZ) they’re in.

Without it, a load balancer typically sends traffic to targets only within the AZ where the traffic originates. This can lead to imbalances if one AZ has more targets or more traffic than the others.

Why Cross Zone Load Balancing Is Important?

Here’s the practical side of things:

  • It ensures all your targets work more efficiently.

  • It handles uneven traffic patterns by spreading the load across all targets, not just the ones in the busiest AZ.

  • All instances contribute evenly, reduces the need to over-provision targets in each AZ.

Types of Load Balancers Supporting Cross Zone Load Balancing

Application Load Balancer (ALB):

  • Enabled by default and free of charge.

  • Ensures even distribution of HTTP(S) traffic across all registered targets.

  • Supports multiple target groups, allowing fine grained routing.

Network Load Balancer (NLB):

  • Disabled by default but can be enabled.

  • Useful for high throughput, low latency Layer 4 traffic.

  • Charges apply for inter AZ traffic when Cross Zone Load Balancing is enabled.

Classic Load Balancer:

  • Disabled by default but can be enabled and free of charge.

  • AWS recommends migrating to ALB or NLB.

How to Enable Cross Zone Load Balancing in AWS

  • Login to the AWS Console

  • Navigate to EC2 → Load Balancers.

  • Select Your Load Balancer.

  • Go to Attributes or Settings Based on the Type:

    • ALB/NLB: Toggle Cross Zone Load Balancing in the Attributes tab.

    • CLB: Enable cross-zone load balancing under Attributes.

  • For Target Groups (ALB/NLB only):

    • Confirm the target group inherits the setting from the load balancer.

    • If necessary, explicitly enable or disable cross-zone load balancing at the target group level.

  • Save Changes and test the load balancer to ensure it works as expected.

aws elb describe-load-balancer-attributes --load-balancer-name techops-loadbalancer

Practical Caveats for you

You may even like:

Looking to promote your company, product, service, or event to 24,000+ TechOps Professionals? Let's work together.