A developer is updating a microservice hosted on Amazon ECS. Due to budget constraints, the developer cannot provision any additional container instances in the ECS cluster. The application is currently running at its desired task count and must remain at least 50% operational during the deployment. Which deployment configuration for minimum healthy percent and maximum percent will allow the deployment to succeed under these constraints?
- minimumHealthyPercent set to 50, and maximumPercent set to 100Cevap
- BminimumHealthyPercent set to 100, and maximumPercent set to 200
- CminimumHealthyPercent set to 100, and maximumPercent set to 100
- DminimumHealthyPercent set to 0, and maximumPercent set to 100
Cevap
Setting the minimumHealthyPercent to 50 and maximumPercent to 100 allows Amazon ECS to deploy the updates within the existing cluster capacity while keeping the application partially available.
The configuration specifying minimumHealthyPercent as 50 and maximumPercent as 100 ensures that ECS can terminate up to half of the running tasks before launching new ones. This satisfies the requirement to keep the application 50% operational while ensuring that the task count never exceeds 100% of the desired limit, avoiding the need for additional instances.
Adım Adım Çözüm
Anahtar Kavram
Amazon ECS Rolling Update Parameters (minimumHealthyPercent and maximumPercent)
Tahmini Süre:1m 0s