When Google Cloud Compute Engine performs periodic infrastructure maintenance it can migrate your virtual machine instances to other hardware without downtime. The virtual machine maintenance behavior determines whether the VM instances are live migrated or terminated during a maintenance event. To ensure that your Google Cloud VM instances are migrated to new hardware, set "On Host Maintenance" configuration setting to "Migrate".
The maintenance events performed by the Compute Engine service include hardware and software updates. Some of these maintenance events require Google Cloud to move your virtual machine (VM) instances away from the host that is undergoing maintenance. A VM instance`s availability policy determines how the instance behaves when there is a maintenance event that involves moving the virtual machine to another host. Compute Engine will live migrate your VM instance if you configured the instance`s availability policy to use live migration instead of instance termination. This prevents your production applications from experiencing disruptions during maintenance events.
Audit
To determine the maintenance behavior configured for your virtual machine instances, perform the following operations:
Remediation / Resolution
To change the maintenance behavior for your Google Cloud virtual machine (VM) instances in order to live migrate your instances during maintenance events instead of terminate them, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Virtual machine instances
- Maintenance events
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud compute instances list
- gcloud compute instances describe
- gcloud compute instances set-scheduling