Soru

Zorluk: OrtaDeployment Strategies and Execution

An operations team manages a containerized service on Amazon ECS with a desired task count of 44. Due to strict resource limits on the hosting infrastructure, the deployment of a new task definition version must not run more than 44 tasks concurrently. The service must remain online and accept traffic throughout the deployment, even if at a temporarily reduced capacity.

Which two deployment parameters must a SysOps administrator configure in the ECS service definition to meet these requirements? (Choose two.)

  1. Set the `minimumHealthyPercent` parameter to 5050Cevap
  2. Set the `maximumPercent` parameter to 100100Cevap
  3. C
    Set the `minimumHealthyPercent` parameter to 100100
  4. D
    Set the `maximumPercent` parameter to 150150
  5. E
    Configure the deployment controller type to use AWS CodeDeploy for a blue/green deployment

Cevap

The correct parameters to configure are setting the minimum healthy percent parameter to 50 and setting the maximum percent parameter to 100.
To satisfy the constraint of never exceeding 44 concurrent tasks, the `maximumPercent` parameter must be set to 100100. This prevents Amazon ECS from starting new tasks before stopping older versions. To ensure the service remains online during the rolling update, the `minimumHealthyPercent` must be set to a value less than 100100, such as 5050, which allows ECS to stop half of the tasks (22 tasks) to make room for new tasks while the remaining 22 tasks continue to serve traffic.

Adım Adım Çözüm

1
Analyze the maximum capacity constraint.
The total tasks running concurrently must not exceed 44, which is the desired count. Therefore, the `maximumPercent` must be set to 100100.
Setting `maximumPercent` to 100100 prevents Amazon ECS from launching new tasks until existing tasks are stopped.
2
Analyze the service availability constraint.
The service must remain online and accept traffic, which means some tasks must remain healthy. Since `maximumPercent` is 100100, ECS must stop tasks before launching new ones. Setting `minimumHealthyPercent` to 5050 allows ECS to stop 22 tasks, keeping 22 active to serve traffic.
Setting `minimumHealthyPercent` to 5050 ensures that at least 50%50\% of the desired count (22 tasks) are always running and healthy during the rolling update.

Anahtar Kavram

Amazon ECS rolling update deployment parameters
Bu soruyu puanla