An e-commerce platform relies on a Compute Engine Managed Instance Group (MIG) to serve dynamic web traffic. During high-volume flash sales, incoming load surges rapidly. The application binary deployed on each virtual machine requires approximately 4 minutes to load configuration files and warm up local caches before it can successfully process requests. However, the MIG autoscaler currently evaluates metrics continuously and provisions additional virtual machines every 60 seconds, creating significantly more instances than required and causing regional CPU quota exhaustion errors. Which operational adjustment should you make to stabilize the autoscaling behavior?
- Set the autoscaler cool-down period (initialization period) to at least 240 seconds so the MIG waits for newly created instances to complete startup before evaluating scaling metrics again.Cevap
- BReconfigure the MIG autoscaling policy to scale based on a custom Cloud Monitoring latency metric while setting the scale-in control period to zero seconds.
- CUpdate the Managed Instance Group instance template to utilize Spot virtual machines so that sudden traffic spikes automatically bypass regional CPU quota limits.
- DProvision an identical Managed Instance Group in a neighboring zone within the same VPC network to automatically double the project's regional CPU quota limits.
Cevap
Configure the cool-down period (initialization period) of the Managed Instance Group autoscaler to at least 240 seconds (4 minutes) to account for application warm-up time.
The correct option is setting the autoscaler cool-down period to at least 240 seconds. When virtual machines require time to initialize and warm up caches, the autoscaler must ignore their metric contributions during that period. Setting the cool-down period to match the 4-minute application startup time prevents the MIG from over-provisioning instances while waiting for existing new instances to become ready.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine Managed Instance Group Autoscaler Cool-Down Period
Tahmini Süre:3m 0s