An organization runs an asynchronous media rendering service on a Compute Engine Managed Instance Group (MIG) that scales dynamically using CPU utilization metrics. During peak operational hours, brief, intermittent drops in CPU usage cause the autoscaler to prematurely terminate VM instances that are still processing long-running rendering tasks. You need to prevent premature instance termination during transient CPU fluctuations while maintaining automated horizontal scaling capabilities. Which configuration change should you make following Google-recommended best practices?
- Configure scale-down control settings on the MIG autoscaler by establishing a stabilization period window to delay instance deletion during temporary metric drops.Cevap
- BSet the autoscaling mode of the Managed Instance Group to ONLY_SCALE_OUT so that downscaling is completely disabled.
- CMigrate the MIG worker instances to Spot VMs so that task interruptions trigger automatic instance recreation.
- DAssign the primitive Owner role (roles/owner) to the Compute Engine default service account to allow the autoscaler permission to inspect active background worker threads.
Cevap
Configure scale-down control settings on the MIG autoscaler by establishing a stabilization period window to delay instance deletion during temporary metric drops.
The correct answer provides the standard Compute Engine autoscaling solution for premature scale-down events. By configuring scale-down control settings—specifically setting a stabilization period—the autoscaler calculates capacity based on peak load observed within that window. This prevents transient drops in CPU utilization from triggering premature instance deletions while preserving full autoscaling functionality.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine MIG Autoscaler Scale-Down Controls and Stabilization Windows