Soru

Zorluk: KolayDeployment Strategies and Execution

An administrator is configuring a rolling update deployment for an Amazon Elastic Container Service (Amazon ECS) service that has a desired task count of 44. The deployment must guarantee that the service capacity does not drop below 44 healthy tasks at any time, but it can scale up to 88 tasks during the update process. Which deployment configuration parameters should the administrator specify to meet these requirements?

  1. A
    Minimum healthy percent: 50%50\%, Maximum percent: 150%150\%
  2. B
    Minimum healthy percent: 100%100\%, Maximum percent: 100%100\%
  3. Minimum healthy percent: 100%100\%, Maximum percent: 200%200\%Cevap
  4. D
    Minimum healthy percent: 0%0\%, Maximum percent: 100%100\%

Cevap

Minimum healthy percent: 100%100\%, Maximum percent: 200%200\%
Specifying a minimum healthy percent of 100%100\% ensures that the service maintains all 44 tasks (100%100\% of the desired count) at all times. Setting the maximum percent to 200%200\% permits the deployment to provision up to 88 tasks (200%200\% of the desired count) temporarily. This allows the new task definitions to run alongside the old ones and pass health checks before the old tasks are drained and terminated.

Adım Adım Çözüm

1
Determine the required minimum healthy percent configuration.
Minimum healthy percent must be set to 100%100\%.
Since the desired task count is 44, and the capacity must not drop below 44 healthy tasks during the update, the ratio of healthy tasks to desired tasks is 44=100%\frac{4}{4} = 100\%.
2
Determine the required maximum percent configuration.
Maximum percent must be set to 200%200\%.
Since the service is allowed to scale up to 88 tasks during the update, the ratio of maximum allowed tasks to desired tasks is 84=200%\frac{8}{4} = 200\%.
3
Combine the parameters to define the deployment configuration.
The final parameters are a minimum healthy percent of 100%100\% and a maximum percent of 200%200\%.
This specific combination ensures that the new task versions are deployed and verified as healthy before the old task versions are stopped, resulting in a zero-downtime rolling update.

Anahtar Kavram

Amazon ECS rolling update deployment configuration utilizing minimum healthy percent and maximum percent parameters.
Bu soruyu puanla