An enterprise operations team is preparing to update a stateless web application running on a Compute Engine Managed Instance Group (MIG) positioned behind an Internal Application Load Balancer. During previous release cycles, updating the instance template caused service disruption because existing instances were terminated before new instances became fully operational. The team needs to configure a rolling update strategy that guarantees maximum available capacity is preserved throughout the release without incurring service downtime. Which configuration strategy should the cloud architect recommend?
- Configure the MIG rolling update policy with maxSurge set to a value greater than zero and maxUnavailable set to zero, while ensuring load balancer health checks verify instance readiness.Cevap
- BConfigure the load balancer health check endpoint to query the deep backend database connection pool directly to determine when new MIG instances are ready for traffic.
- CMaintain the MIG update parameters and deployment automation state within unversioned local state storage on the deployment worker node to speed up execution.
- DGrant the deployment service account the primitive Owner IAM role on the project to override instance creation delays and force immediate MIG instance termination.
Cevap
Configure the MIG rolling update policy with maxSurge set to a value greater than zero and maxUnavailable set to zero, while ensuring load balancer health checks verify instance readiness.
Configuring a Compute Engine Managed Instance Group rolling update with maxSurge set above zero and maxUnavailable set to zero ensures that new instances with the updated template are brought online and verified healthy before any existing instances are removed. This guarantees that total active serving capacity never drops below the required baseline during deployment.
Adım Adım Çözüm
Anahtar Kavram
MIG Rolling Update Capacity Preservation (maxSurge vs maxUnavailable)