A developer needs to update an Amazon ECS service that runs behind an Application Load Balancer. To prevent any service degradation, the service must maintain 100% of its desired task capacity at all times during the update. Additionally, the service is allowed to provision up to double its desired capacity temporarily to perform the rolling update. Which configuration of deployment parameters should the developer apply to the ECS service?
- Set the minimum healthy percent to 100% and the maximum percent to 200%Answer
- BSet the minimum healthy percent to 50% and the maximum percent to 100%
- CSet the minimum healthy percent to 100% and the maximum percent to 100%
- DSet the minimum healthy percent to 0% and the maximum percent to 200%
Answer
Set the minimum healthy percent to 100% and the maximum percent to 200%
Setting the minimum healthy percent to 100% ensures that the desired capacity is maintained at all times, preventing any service degradation. Setting the maximum percent to 200% allows ECS to launch the new version of tasks up to double the desired count before stopping any of the existing tasks, enabling a smooth rolling update with zero downtime.
Step-by-Step Solution
Key Concept
Amazon ECS service rolling update parameters (minimum healthy percent and maximum percent)