A company is designing the deployment strategy for a new web service that will run on Amazon Elastic Container Service (Amazon ECS). The deployment will be managed by updating the ECS service's task definition via AWS CloudFormation. The application must maintain of its desired task capacity at all times during the rolling update to prevent performance degradation, and it can temporarily run up to of the desired task count to facilitate the deployment.
Which configuration of the deployment parameters in the ECS service resource will meet these requirements?
- Set the minimum healthy percent to and the maximum percent to .Answer
- BSet the minimum healthy percent to and the maximum percent to .
- CSet the minimum healthy percent to and the maximum percent to .
- DSet the minimum healthy percent to and the maximum percent to .
Answer
Setting the minimum healthy percent to and the maximum percent to in the Amazon ECS service configuration.
The correct configuration is setting the minimum healthy percent to and the maximum percent to . This ensures that during a rolling update, the ECS service maintains all of its existing running tasks while launching new tasks up to double the desired capacity. Once the new tasks pass health checks, the ECS scheduler will terminate the old tasks, ensuring zero downtime and no performance degradation.
Step-by-Step Solution
Key Concept
Amazon ECS service rolling update parameters (minimum healthy percent and maximum percent) control deployment capacity and speed.