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 個月前檢視次數 237 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南