Posted On: Jul 2, 2023

Amazon Elastic Container Service (Amazon ECS) now enables faster task launches on container instances that have tasks with prolonged shutdown. This enables customers to scale their workloads faster and improve infrastructure utilization.

Amazon ECS is a fully managed container orchestration service that makes it easy for you to deploy, manage, and scale containerized applications. To enable higher task provisioning throughput, ECS optimistically considers instance resources (e.g. cpu, memory, ports) as free for launching new tasks whenever a running task transitions to the stopping state. This optimization works well in most cases by allowing new tasks to be scheduled in parallel to stopping tasks. However, in cases when a stopping task takes a long time to shutdown, new tasks launches could get blocked on the instance. This happened because ECS Agent waited for all stopping tasks to shutdown before starting new tasks. Starting today, ECS Agent can start new tasks on an instance if requisite resources are available even if there are tasks pending shutdown, enabling faster task launches and improving infrastructure utilization.

The new experience is now available for customers using Amazon ECS on EC2 or ECS Anywhere on Amazon ECS Optimized AMIs with ECS Agent version 1.73.0 or later, in Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD.