1 Answer
- Newest
- Most votes
- Most comments
1
To achieve what your looking for is to add 2 targets in one target group on your listener and then disable cross zone load balancing.
When cross-zone load balancing is off, each load balancer node distributes traffic across only the registered targets in its Availability Zone.
Relevant content
- Accepted Answerasked 4 years ago
- Accepted Answerasked a month ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 7 months ago
- How can I troubleshoot issues when I use the AWS Load Balancer Controller to create a load balancer?AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
I might misunderstand the Target Group definition. I thought it was AZ-related but not. It seems a Target Group is just a virtual container including the targets from different AZs. Regarding the NLB, cross-zone load balancing is off by default, so the traffic is always routed to the targets in the same AZ.
Is this a correct understanding?
You are correct with your understanding. A target group isn’t specific per AZ and multi AZ is disabled by default on a network load balancer.