AWS ECS-在一个ALB中注册多个ECS集群

时间:2018-07-04 06:22:16

标签: amazon-web-services docker aws-ecs aws-elb

四个ECS集群在一个ALB(不是四个ec2)中注册。根据ALB中的侦听器规则,流量将被分发到每个ECS群集(使用目标组)。我正在使用动态端口。 更新ECS服务后,确认ec2中的docker容器正常启动。 (成功-curl localhost:[dynamicport] /检查页) 但是,目标组中的运行状况检查失败。 “初始”状态持续存在。 将多个ECS集群映射到一个ALB时,动态端口是否存在问题?将一个ECS群集映射到一个ALB没问题。 请说明这种情况。

1 个答案:

答案 0 :(得分:0)

运行状况检查失败意味着2种原因,

security group rules, make sure your all containers should allow traffic from ELB



AND check conatiner is running live are not i mean once check docker image CMD command that will be problem, always make sure one service must running foreground in docker container.
相关问题