- Newest
- Most votes
- Most comments
Hi,
Have a detailled read of https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html
In particular:
For service tasks, you do not need to take any action to task retirement unless you
want to replace these tasks before AWS does. When the Amazon ECS scheduler stops
the tasks, it uses the minimum healthy percent and launches a new task in an attempt
to maintain the desired count for the service.
To minimalize the impact of AWS Fargate task retirement, you should follow Amazon
ECS best practices when you deploy workloads.. For example, when deploying a stateless
application as an service, such as a web or API server, you should deploy multiple task
replicas and set the minimumHealthyPercent to 100%. By default, the minimum healthy
percent of a service is 100 percent.
Therefore, when AWS Fargate starts retiring tasks, Amazon ECS first schedules a new task,
and then waits for it to be running, before retiring an old task. As part of task retirement,
service tasks are routinely replaced in the same way when you scale the service, deploy
configuration changes, or deploy task definition revisions. To prepare for the task retirement
process, we recommend that you test your application behavior by simulating this scenario.
You can do this by stopping an individual task in your service to test for resiliency.
So, all-in-all, if you have multiple replicas of your tasks, Fargate will incrementally replace them to ensure no impact on service health (i..e constantly 100%). It means that the replacement may extend over some time if you have lots of replica tasks but with no visible impact (downtime) for your users.
As the message says, you don't have to take any action: the incremental replacement will start automatically at given date and time.
Best,
Didier
Hi Didier,
Thank you for answering my inquiry. I'm new to fargate and my first time encountering a maintenance. I just fear a possible downtime. I'll keep this as my reference.
answered 2 years ago
Relevant content
asked 4 years ago
