Network Load balancer enabled in All available AZs and cross zone load balancer enabled.

0

Can someone explain the behaviour of network load balancer enabled in All available AZs and cross zone load balancer enabled ?

Context : We have building a Tier-1 Service which is expected to be highly available and have low latency. Our infra choice was ECS fargate which was fronted by a Network load balancer, We have nlb registered in all available zones for regions (us-east-1, eu-west-1, ap-northeast-1 and us-west-2). We are enabling cross zone load balancing too. Questions:

  1. How does NLB work with when enabled in All available AZs and cross zone load balancer enabled
  2. How will it impact latency ? Should we remove cross zone load balancer ?
feita há um ano1066 visualizações
2 Respostas
0

Cross-zone load balancing is described in the AWS documentation.

  1. If you enable cross-zone load balancing then requests are distributed evenly across all registered targets in all Availability Zones. This might be desirable if you're trying to protect against a scenario where all hosts in an Availability Zone are down.
  2. There will be slightly higher latency for cross-zone requests. It will be minimal and probably a much smaller part than the latency between the client and the load balancer but it will be there. You can check the latency between the Availability Zones by using ping or other networking tools.

Whether you turn cross-zone load balancing on or off depends on your requirements for latency and for availability.

profile pictureAWS
ESPECIALISTA
respondido há um ano
profile pictureAWS
ESPECIALISTA
avaliado há um ano
0

From a latency perspective, the risk you incur in not enabling cross-zone load balancing is that requests to NLBs in an AZ where there are no healthy instances would timeout and be retried by the client, thus increasing the average latency experienced by the clients.

Another aspect of enabling cross-zone load balancing is that it increases networking costs: all traffic that goes from a NLB in one AZ to a target in a different AZ will incur a network transfer charge. If you have 3 AZ, this will be equivalent to 2/3rd of the traffic.

One way to minimize the impact on latency without using cross-zone load balancing is to use Zonal Shift. You can read more about best practices with Zonal Shift

AWS
ESPECIALISTA
respondido há um ano
profile pictureAWS
ESPECIALISTA
avaliado há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas