简体   繁体   English

注册 ECS fargate 实例时 NLB 健康检查随机失败

[英]Random failure of NLB Health Check while registering ECS fargate instances

I'm seeing a random failure of NLB health checks when registering the ECS fargate instances, healths checks get passed after a couple of failures.我在注册 ECS fargate 实例时看到 NLB 健康检查随机失败,健康检查在几次失败后通过。 I do a wide open SG that's attached to fargate Instances.我做了一个连接到 fargate 实例的开放式 SG。 Did anyone had a similar behaviour while registering the tasks under NLB targegroups?在 NLB targegroups 下注册任务时,是否有人有类似的行为?

You application can take some time before it starts responding to the health checks from the ELB.您的应用程序可能需要一些时间才能开始响应来自 ELB 的健康检查。

When you create a ECS service, there is an option called healthCheckGracePeriodSeconds .创建 ECS 服务时,有一个名为healthCheckGracePeriodSeconds的选项。 It governs how many seconds ECS scheduler will ignore health checks information from the ELB.它控制 ECS 调度程序将忽略来自 ELB 的健康检查信息的秒数。 This option is only available if you use ELB.此选项仅在您使用 ELB 时可用。

So I recomend you to play with it and pick a suitable time frame for you.所以我建议你玩它并为你选择一个合适的时间框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM