A media streaming platform hosts a video segment processing service on Compute Engine Managed Instance Groups (MIGs). The application is memory-intensive and network I/O-bound as it fetches uncompressed video segments from Cloud Storage, causing average CPU utilization to stay under 35% even when processing latency increases significantly during live events. Additionally, during sudden traffic spikes, MIG autoscaling attempts fail because requested instance counts exceed the project's regional compute resource limits. Which architectural strategy should a Cloud Architect implement to ensure reliable scaling and adequate capacity during high-demand live events?
- Configure the MIG autoscaler using a custom Cloud Monitoring metric based on queue backlog depth, and proactively request regional vCPU quota increases prior to scheduled events.Cevap
- BKeep the MIG autoscaler configured on target CPU utilization set to a lower threshold of 30%, and purchase 3-year Committed Use Discounts (CUDs) to bypass regional quota restrictions.
- CMigrate the entire processing application to Google Kubernetes Engine (GKE) with Cluster Autoscaler enabled, relying on default CPU metrics and built-in automatic quota expansions.
- DConfigure the MIG autoscaler using standard HTTP load balancer latency metrics, and rely on regional auto-bursting capabilities to handle capacity shortages during spikes.
Cevap
Configure the MIG autoscaler using a custom Cloud Monitoring metric based on queue backlog depth, and proactively request regional vCPU quota increases prior to scheduled events.
For I/O-bound processing workloads where CPU utilization remains low despite growing backlogs, Compute Engine MIG autoscalers should be configured using custom Cloud Monitoring metrics such as queue depth. Additionally, capacity planning requires requesting regional compute resource quota increases in advance of anticipated peak events to ensure the cloud provider allows instance expansion.
Adım Adım Çözüm
Anahtar Kavram
Custom Metric Autoscaling and Capacity Quota Management