AWS错误:这些可用区均未包含正常目标。请求被路由到所有目标。在AWS中 [英] AWS Error : None of these Availability Zones contains a healthy target. Requests are being routed to all targets. in AWS

查看:265
本文介绍了AWS错误:这些可用区均未包含正常目标。请求被路由到所有目标。在AWS中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Aws中创建了应用程序负载平衡。
我创建了2个EC2并将它们分组。
之后,我将该组添加到具有侦听器80的ALB中。

I have created a Application Load Balance in Aws. I have created 2 EC2 and make them a group. After that I add that group to the ALB with listener 80.

但是,当系统进行正常检查时,它会给出错误并显示两个已注册EC2不健康。

But when the system goes for healthy checks, it gives the error and shows that two registered EC2 are unhealthy.

错误是:


这些可用区均不可用包含一个健康的目标。请求
被路由到所有目标。

None of these Availability Zones contains a healthy target. Requests are being routed to all targets.

可用区域:
subnet-5691df0f-ap-northeast-1c,
subnet-97ae35e1-ap-northeast-1a

请让我知道原因。

AWS相关图片

AWS相关image2

推荐答案

我遇到了这个问题,并且还收到了504网关超时,最终成为了文档

I was running into this issue, and also getting a 504 Gateway timeout, and it ended up being this missing rule from the documentation.


  1. 通过 https://console.aws.amazon.com/ec2/

在左侧导航,选择安全组。

In the left navigation, choose Security Groups.

选择您的容器实例使用的安全组。如果您使用Amazon ECS首次运行向导创建了容器实例,则此安全组的描述可能为ECS允许的端口。

Choose the security group that your container instances use. If you created your container instances by using the Amazon ECS first run wizard, this security group may have the description, ECS Allowed Ports.

选择入站选项卡,然后选择编辑。

Choose the Inbound tab, and then choose Edit.

对于类型,选择所有流量。

For Type, choose All traffic.

对于源 ,选择自定义,然后键入在配置安全组中创建的Application Load Balancer安全组的名称。该规则允许来自您的应用程序负载平衡器的所有流量到达您在负载平衡器中注册的任务中的容器。

For Source, choose Custom, and then type the name of your Application Load Balancer security group that you created in Configure Security Groups. This rule allows all traffic from your Application Load Balancer to reach the containers in your tasks that are registered with your load balancer.

选择保存以完成操作。

这篇关于AWS错误:这些可用区均未包含正常目标。请求被路由到所有目标。在AWS中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆