using of NLB for HA

0

Hi Team,

In my architecture I will use NLB : API GW => VPCLink => NLB => ECs fargate,

for high availability in the prod environment do I need to spin up 2 NLBs, on each AZ, so my NLB is not a single point of failure?

or is AWS NLB highly available by default? so I need only one NLB in my architecture for the whole region

Thank you.

3개 답변
3

NLB is a highly available load balancer. You can define in which AZs it will be available. See more here.

profile pictureAWS
전문가
Uri
답변함 2년 전
profile picture
전문가
검토됨 한 달 전
2

Hello,

According to AWS Network Load Balancer official webpage:

Zonal Isolation: The Network Load Balancer is designed for application architectures in a single zone. If something in the Availability Zone fails, we will automatically fail-over to other healthy Availability Zones. While we recommend customers configure the load balancer and targets in multiple AZs for achieving high availability, Network Load Balancer can be enabled in a single Availability Zone to support architectures that require zonal isolation.

So, yes, AWS Network Load Balancer (AWS NLB) is highly available by default and can cover multiple Availability Zones in an AWS region.

profile pictureAWS
답변함 2년 전
profile picture
전문가
검토됨 한 달 전
1

You only need one NLB, it's not a single point of failure and operates across AZs.

Note you may or may not want to enable cross-zone load balancing, disabled by default for NLB (unlike ALB).

If you tick this option, each node will spread the load evenly across all instances no matter what AZ they're in. So even with 10 instances in one AZ and 2 instances in another, all 12 instances would get equal load. When cross-zone load balancing is disabled, each load balancer node distributes traffic only across the registered targets in its Availability Zone, so in the above example 50% of load would be spread across 2 instances, and the other 50% across 10 instances.

Pros:

  • If instances in an AZ are lost, you don't need to modify the DNS record for the LB to stop clients targeting that AZ; modifications like this have DNS TTL issues of course.
  • Spreading load more evenly as above.

Cons:

  • Extra latency to cross AZs, milliseconds instead of microseconds.
  • Cost of cross-zone traffic.
전문가
답변함 2년 전
profile picture
전문가
검토됨 한 달 전

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

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

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

관련 콘텐츠