gpt4 book ai didi

amazon-web-services - AWS 错误 : None of these Availability Zones contains a healthy target. 请求被路由到所有目标。在 AWS

转载 作者:行者123 更新时间:2023-12-03 14:51:11 24 4
gpt4 key购买 nike

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

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

错误是:

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

Availability Zones: subnet-5691df0f - ap-northeast-1c, subnet-97ae35e1 - ap-northeast-1a



请告诉我原因。

AWS Related image

AWS Related image2

最佳答案

我遇到了这个问题,也遇到了 504 网关超时,结果是 the documentation 中缺少的规则。 .

  • https://console.aws.amazon.com/ec2/ 打开 Amazon EC2 控制台.
  • 在左侧导航中,选择安全组。
  • 选择您的容器实例使用的安全组。如果您使用 Amazon ECS 首次运行向导创建了容器实例,则此安全组的描述可能为 ECS 允许的端口。
  • 选择入站选项卡,然后选择编辑。
  • 对于类型,选择所有流量。
  • 对于源,选择自定义,然后键入您在配置安全组中创建的 Application Load Balancer 安全组的名称。此规则允许来自应用程序负载均衡器的所有流量到达在您的负载均衡器中注册的任务中的容器。
  • 选择保存完成。
  • 关于amazon-web-services - AWS 错误 : None of these Availability Zones contains a healthy target. 请求被路由到所有目标。在 AWS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42086262/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com