Home > Net >  AWS ECS fargate auto-scaling - how does it scale-in selects which tasks to terminate?
AWS ECS fargate auto-scaling - how does it scale-in selects which tasks to terminate?

Time:05-18

I am running java process inside ecs fargate containers and have set-up auto scaling to scale-out when memory utilization is above 60% and scale-in accordingly. This setup is working fine but i am not able to figure out the criteria based upon which ecs determines which tasks it should shutdown as part of the scale-in events i.e how does it distinguishes between different tasks and picks one to shutdown ? Does it check if there any active requests on the tasks or not and then if there are multiple such tasks then picks randomly ?

CodePudding user response:

There is a years long open issue about that on github:

From the issue and its comments you can infer the following:

Does it check if there any active requests on the tasks

No.

if there are multiple such tasks then picks randomly ?

Its random.

  • Related