1 Answer
- Newest
- Most votes
- Most comments
-1
One reason why your traffic was not working might be because you had cross-zone load balancing disabled and the database was not in the same AZ as the NLB. NLB forwards traffic only within the same AZ where the endpoint is, if the cross-zone option is disabled. Thus, it might seem that connection is established as it goes to NLB but the NLB can't connect to backend resources.
The amount of IP addresses you get back with dig-command depends on the amount of subnets where the NLB is deployed into. Cross-zone loadbalancing option doesn't affect this.
answered 10 months ago
Relevant content
- asked 5 years ago
- Accepted Answerasked 8 months ago
- asked 9 months ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Hi, thanks for your comment. I realize how cross-zone load balancing works and agree with what you said however I didn't have it turned off right away. If you read my question, the exact same setup was used in both environments with cross-zone load balancing turned on and in spite of that I observed a different behavior which I can't explain.