An enterprise financial compliance application deployed on Compute Engine Managed Instance Groups (MIGs) processes continuous streaming network traffic. During high-throughput compliance audit cycles, backend instances experience severe latency and drop connections due to socket allocation exhaustion and memory pressure, while average CPU utilization remains at approximately 35%. Furthermore, upcoming quarterly compliance stress testing requires expanding the infrastructure by 300 instances, but past automated scale-out events failed immediately because the target region exceeded baseline vCPU limits. Which combination of autoscaling policy and capacity planning strategies should the Cloud Architect implement to ensure operational reliability?
- Configure the MIG autoscaler to use a custom Cloud Monitoring metric reflecting active open socket connections, submit a regional vCPU quota increase request well before the audit cycle, and create compute capacity reservations.Answer
- BSet the target CPU utilization of the MIG autoscaler to 30% to force earlier instance creation, and rely on standard dynamic instance scaling without reserving capacity in advance.
- CConfigure custom Cloud Monitoring metric scaling based on active network sockets, and deploy an automated Cloud Function to request regional vCPU quota increases dynamically when instance creation errors occur during the stress test.
- DMigrate the application to Google Kubernetes Engine (GKE) using Horizontal Pod Autoscaling (HPA) targeting 60% CPU utilization, and deploy a custom node pool across multiple zones to bypass Compute Engine regional quota boundaries.