负载平衡器转发到一个目标的所有流量

发布于 2025-02-10 17:44:48 字数 175 浏览 0 评论 0原文

我有一个AWS网络负载均衡器,其中2个EC2实例注册为目标。出现的问题在于,所有负载仅转发到两个实例之一,这超过了具有负载平衡器的全部目的。

我已经检查了以下内容: -

  1. 这两个实例
  2. 实现了健康的跨区域平衡,

是否有其他原因发生?如果是,那么如何修复它

I have an AWS Network Load Balancer with 2 EC2 instances registered as targets. The problem arising in it is that all the load is forwarded to only one of the 2 instances, which beats the whole purpose of having a load balancer.

I have checked the following things:-

  1. Both the instances are healthy
  2. Cross-Zonal Load Balancing is enabled

Is there any other reason why this is happening? If yes, then how to fix it

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

两个我 2025-02-17 17:44:48

还有其他原因发生吗?如果是,那么如何修复

。一个很可能的原因是您的NLB使用 AZS 与您的EC2实例不同。大概一个实例位于未启用NLB的AZ中。

Is there any other reason why this is happening? If yes, then how to fix it

Yes. A most likely reason is that your NLB is using different AZs than your EC2 instances. Probably one instance is located in an AZ not enabled for the NLB.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文