DevOps Peach

GCP Basics · Module 05

Compute Engine – Machine Types, VMs, Disks and Managed Instance Groups

Pick machine families and pricing models, create and connect to VMs safely, manage Persistent Disk, Hyperdisk, snapshots and images, and run fleets of identical VMs with instance templates, managed instance groups and autoscaling.

Practice interactively →

What you will learn

Lessons

  1. Machine Families and Pricing Models

    Machine families trade price for performance; on-demand billing is per second, sustained use and committed use discounts lower steady costs, and Spot VMs are much cheaper but can be stopped at any time.

  2. Create a VM and Connect: OS Login and IAP

    Create VMs from public image families without external IPs, run a startup script, attach a dedicated service account, and connect with OS Login over IAP instead of shared SSH keys.

  3. Persistent Disk, Hyperdisk, Snapshots and Images

    Choose a disk type for performance and cost, grow disks online, protect them with scheduled incremental snapshots, and build custom images and image families for repeatable VMs.

  4. Instance Templates, Managed Instance Groups and Autoscaling

    An instance template describes a VM; a regional managed instance group runs identical VMs across zones with autoscaling, autohealing and rolling updates.

  5. VM Availability: Zones, Live Migration and Regional Disks

    Compute Engine live-migrates most VMs during host maintenance; design for zone failure with regional MIGs and regional disks, and set maintenance and restart policies per VM.