Compute Engine - Live Migration & Availability Policy


How do you keep your VM instances running when a host system needs to be updated (a soware or a hardware update needs to be performed)?

  • Your running instance is migrated to another host in the same zone
  • Does NOT change any attributes or properties of the VM
  • SUPPORTED for instances with local SSDs
  • NOT SUPPORTED for GPUs and preemptible instancesPreemtible InstancesHow Preemtible Instances works in GCP: Short-lived cheaper* (upto 80%) *compute instances * Can be stopped by GCP any time (preempted) within 24 hours * Maximum time for running is 24 hours * Instances get 30 second warning (to save anything they want to save) Use Preempt VM's** if: * Your applications are fault tolerant * You are very cost sensitive * Your workload is NOT immediate * Example: Non immediate batch processing jobs RESTRICTIONS: * NOT always available * NO SLA and

Important Configuration - Availability Policy:

  • On host maintenance: What should happen during periodic infrastructure maintenance?
    • Migrate (default): Migrate VM instance to other hardware
    • Terminate: Stop the VM instance
  • Automatic restart - Restart VM instances if they are terminated due to non-user-initiated reasons (maintenance event, hardware failure etc.)

Status: #idea
Tags: gcp, google-cloud-engineerGoogle Associate Cloud Engineer Noteswhy use cloud? https://www.in28minutes.com/gcp-bookshelf https://www.in28minutes.com/downloads/09-google-certified-associate-cloud-engineer/CoursePresentation-GoogleCertifiedAssociateCloudEngineer.pdf how do projects work in gcp? cloud projects and accounts Resource Hierarchy Organization Level Folder Level Project Level IAM who * single account * group can do what (rules) * basic * predefined * custom scope observability monitoring billing account load balancing Regions and Zones, cloud, cloud-migration, Google Compute EngineGoogle Compute EngineGCP service used to provision and manage virtual machines * Create and manage lifecycle of Virtual Machine (VM) instances * Associated with a project Load balancing* and *auto scaling* for multiple VM instances Attach storage** (& network storage) to your VM instances * Manage network connectivity and configuration for your VM instances Setup Billing Live Migration & Availability Policy Scenarios Similar to AWS EC2, Azure Virtual Machines Status: #idea Tags: gcp, google-cloud-engineer,


References