A cloud administrator manages a stateless batch data processing application running on Compute Engine virtual machines. The workload is fault-tolerant and can easily tolerate intermittent node terminations. To minimize compute costs, the administrator plans to transition the workload to Spot VMs. Which approach recommended by Google Cloud best practices should the administrator implement to ensure terminated instances are automatically recreated while maintaining the desired pool capacity?
- Define an Instance Template that specifies Spot VMs, and deploy the workload inside a Managed Instance Group (MIG) configured to maintain the target number of instances.Cevap
- BDeploy the application onto standalone Spot VMs with hourly Persistent Disk snapshots to recover instance state after preemption.
- CGrant the project-level Owner primitive role to the VM service account so it can automatically submit quota increase requests when Spot instances are reclaimed.
- DConfigure an autoscaling policy based on custom CPU utilization metrics set to scale up instances immediately prior to the Spot VM termination limit.
Cevap
Define an Instance Template that specifies Spot VMs, and deploy the workload inside a Managed Instance Group (MIG) configured to maintain the target number of instances.
Deploying Spot VMs within a Managed Instance Group (MIG) using a defined Instance Template is the Google-recommended approach. The MIG automatically detects when Spot instances are reclaimed by Google Cloud and provisions replacement instances to sustain the target capacity.
Adım Adım Çözüm
Anahtar Kavram
Managing Spot VMs using Managed Instance Groups (MIGs)
Tahmini Süre:1m 30s