Network Load Balancer and failure conditions across multiple AZs

0

I would like some information about Network Load Balancer behavior that I can't find in the docs. If I have a NLB across 3 AZs and with n instances in its target group, and I remove all but 1 of the instances in one of my AZs, leaving m instances: will the remaining single instance in its own AZ get 1/3 of the load or 1/m of the load?

AWS
질문됨 5년 전706회 조회
1개 답변
1
수락된 답변

To ensure I'm understanding, let me rephrase your example to address what I think you are asking.

You have a 3 AZ NLB with 100 targets per AZ in the same Target Group. 300 total targets.

In AZ-a you remove 99 of the targets, leaving 1 target. In the other AZs you still have 100 targets.

Assuming all targets are healthy and clients do not favor any of the IPs/AZs... Your 1 target remaining in AZ-a will get traffic based on the cross zone routing setting.

If cross zone load balancing is enabled, target 1 will get the same amount of traffic as each of the other 200 targets, or 1/200th of the traffic.

If cross zone load balancing is disabled, target 1 will get the same traffic as each of the other AZs, or 1/3rd of the traffic.

The reason for this is that NLB does load balancing at 2 layers, just like ALB and CLB. The first layer is DNS level load balancing, where all IPs in DNS are distributed to clients, and clients should be connecting to all IPs evenly. In ALB/CLB this can be a lot more total IPs (currently up to 100 total), but in NLB this is only 1 per AZ, or 3 in this case. The second level of load balancing is at the load balancer itself, and this is where the key aspect of what I think is your question comes into play. This is where each NLB IP/AZ considers all available healthy targets equally. If this includes all AZs, then you will get even amongst all targets in all AZs. If this is only the local AZ (local to where the request arrived), then you will get even amonst the targets in that AZ, which is only 1 in this case.

AWS
전문가
zobAWS
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠