A company runs a critical microservice on Amazon ECS with an EC2 launch type. The service has a desired task count of . Due to strict budget constraints, the underlying Auto Scaling group of EC2 instances is configured to not scale out, and there is no spare capacity in the cluster to run additional tasks. The SysOps Administrator needs to update the service to a new task definition. The deployment must guarantee that at least tasks are always running and healthy to handle baseline traffic. Which combination of minimum healthy percent and maximum percent settings will achieve this deployment goal?
- Minimum healthy percent: , Maximum percent: Answer
- BMinimum healthy percent: , Maximum percent:
- CMinimum healthy percent: , Maximum percent:
- DMinimum healthy percent: , Maximum percent:
Answer
Minimum healthy percent: , Maximum percent:
The correct answer specifies a minimum healthy percent of and a maximum percent of . In Amazon ECS rolling updates, setting the minimum healthy percent to allows ECS to stop up to tasks (leaving tasks, or of the desired , running and healthy). Setting the maximum percent to ensures that the service does not attempt to launch more than tasks at any point during the deployment. This prevents the need for additional EC2 host resources, ensuring the deployment succeeds within the current capacity constraints while meeting the requirement of keeping at least tasks active.
Step-by-Step Solution
Key Concept
Amazon ECS rolling update deployment settings (minimum healthy percent and maximum percent) control the capacity envelope during service updates.