0

I have a query regarding a configuration regarding CLB and Availability zone.

When we create an Load balancer we have to specify the AZ's in which that ELB node will be created.

My question is can we have the CLB created in AZ A and have the EC2 instance in AZ B and without specifying the AZ B in CLB configuration and route traffic using route tables or any other configuration

1 Answer 1

1

My question is can we have the CLB created in AZ A and have the EC2 instance in AZ B and without specifying the AZ B in CLB configuration and route traffic using route tables or any other configuration

Sadly you can't do this. Load balancer will distribute traffic only to instance in AZs which it was enabled for.

Therefore, if you have CLB in AZ A, and your instance is in AZ B, the instance will not get any traffic.

Cross-zone balancing will not help either. It has different purpose, and will not distribute traffic to instances in AZ which are not included in CLB.

With cross-zone load balancing, each load balancer node for your Classic Load Balancer distributes requests evenly across the registered instances in all enabled Availability Zones.

Therefore, your instances must be located in same AZs as those used for CLB

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.