ECS Stucked in Activating/Deactivating state

0

Hi!

I have 2 EC2 instances, 3 services, each service runs 2 tasks with 1 container each.

Config:

Min capacity: 30% Max capacity: 200% Min tasks: 2 Max tasks: 4 I only have 1 alb forwarding traffic to this containers.

99% of the time the desired capacity is 2 for each service.

When I want to update the service, it takes up to 20 minutes to stop and start a new instance. So each deploy takes me up to 40 minutes. Whereas in the qa environment where i only have 1 ec2 instance and 1 container per service, it takes 2 o or 3 minutes.

Most of the time the task are in the activating/deactivating state. Why is taking so long to do the deploy?

已提问 7 个月前249 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则