Static IP for NLB endpoint

0

A customer has imposed several artificial limitations on themselves resulting in the need to only route traffic from on-prem to AWS via direct connect, however they aren't willing to deploy DNS forwarders / resolvers and can only deal in IP address through their FW endpoint. They want to use an NLB to balance traffic to targets across multiple AZs.

I understand that the NLB can be deployed to multi-AZ and each NLB node can get a static IP address, however the actual endpoint is DNS only. Is there a workaround to use a static IP for an internal NLB endpoint, while still enabling multi-AZ for the NLB.

One (bad) workaround discussed was to deploy NLB only single AZ, then enable cross-zone balancing to still allow HA for targets. This has the obvious downside of NLB being single point of failure in 1 AZ.

Looking for other suggestions.

AWS
已提問 3 年前檢視次數 2898 次
1 個回答
0
已接受的答案

As you noted, for each NLB, it gets a static per AZ. The IPs stay the same during the lifetime of the NLB. Therefore, the client can technically using those IPs directly.

As you mentioned, the might be events that impact an entire AZ. When that happens, the static IP of the NLB in that AZ usually would be removed from the DNS (DNS health check). When that happens, if the clients have that "bad" IP hard coded somewhere and keep connecting to it, they would still experience problem. That is why, DNS is preferred. If the clients has to use the static IP directly, some fail over logic need to be built into the client side so that it can switch over to another AZ's NLB static IP, when a single AZ failure happens.

AWS
已回答 3 年前
  • Just a question related to the topic. Once the AZ is recovered, the static IP of that AZ is the same as before? If not, associating manually an EIP to an AZ will not change it in case of failure?

    Thanks!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南