Skip to main content

Machine Families & Types

Exam guide§2.1

Choosing a VM starts here: which family, which series, and the exact machine type (vCPU + memory shape). See the Compute Engine overview for how machine type fits alongside region/zone, boot disk, and access.

Machine familye.g. General-purposeMachine seriese.g. E2Machine typee.g. e2-standard-4
Pick from the general shape outward: a family narrows to a series, a series narrows to one predefined machine type.
NumbersvCPU & network throughput
  • Predefined types have fixed vCPU:memory ratios; custom types let you set them independently.
  • Network egress scales at 2 Gbps per vCPU; instances with 2 or 4 vCPUs get up to 10 Gbps.
  • Theoretical maximum is 200 Gbps at 176 vCPUs (C3 machine series).
  • Each vCPU = one hardware hyper-thread on the underlying CPU platform.
DECISIONWhich machine family?
Accelerator-optimizedA2 · A3 · G2GPUs built in - CUDA MLtraining/inference, HPC.off the memory-per-vCPU axisCompute-optimizedC2 · C2D · H3Highest perf per core: CPU-boundwork, gaming, HPC, per-corelicensing.General-purposeE2 · N2 · N2D · Tau T2Balanced, best price-performance.Default for standard workloads.Memory-optimizedM1 · M2 · M3Most RAM, lowest cost per GB.Large in-memory DBs (SAP HANA).less memory per vCPUmore memory per vCPU
Three families sit on one axis - memory per vCPU. Accelerator-optimized is a separate family with GPUs built in; of the other families, only N1 general-purpose allows attached GPUs.
Pick this when: map the workload's bottleneck to a family: balanced = general-purpose; CPU-bound = compute-optimized; RAM-bound = memory-optimized; GPU/ML = accelerator-optimized

General-purpose (E2, N2, N2D, Tau T2)

Best price-performance and the most flexible vCPU:memory ratios. Default choice for most workloads.

ProcessorSizeWorkloadApplicationsE2 standardIntel/AMD (Google picks)2-32 vCPUs, 0.5-8 GB/vCPU(Cost-optimized)Day-to-day computing at alower cost• Web serving• App serving• Back office apps• Small-medium databases• Microservices• Virtual desktops• DevelopmentenvironmentsE2 shared-coreContext-switched core0.25-1 vCPU, 0.5-8 GB(Cost-optimized) Tiny,non-intensive workloads• Small websites & apps• Low-traffic services• Dev/test(e2-micro/small/medium)N2, N2DN2: Intel CascadeLake/Ice Lake · N2D: AMDEPYC Milan/RomeN2 up to 128 vCPUs; N2Dup to 224(Balanced) Balancedprice/performance acrossa wide range of VM shapes• Web serving• App serving• Back office apps• Medium-large databases• Cache• Media/streamingTau T2D, T2AT2D: 3rd Gen AMD EPYC(x86) · T2A: Ampere AltraArmT2D up to 60 vCPUs, 4GB/vCPU(Scale-out optimized)Best performance/cost forscale-out workloads• Scale-out workloads• Web serving• Containerizedmicroservices• Media transcoding• Large-scale Javaapplications
General-purpose series: balanced price-performance for standard workloads.
NumbersGeneral-purpose facts
  • E2 VMs are the lowest price on Compute Engine, especially with committed-use discounts.
  • N2/N2D are the most flexible types and support both committed and sustained use discounts.
  • Tau T2D nodes work with GKE - add the T2D machine type to a node pool to optimize price-performance for containerized workloads.

Compute-optimized (C2, C2D, H3)

Highest performance per core; for compute-intensive workloads.

ProcessorSizeWorkloadApplicationsC2Intel Cascade Lake, up to3.8 GHz all-core turbo4-60 vCPUs, up to 240 GB,up to 3 TB local SSD(Compute-intensive) Ultrahigh performance per core• Compute-bound workloads• High-performance webserving• Gaming (AAA gameservers)• Ad serving• High-performancecomputing (HPC)• Media transcoding• AI/MLC2D3rd Gen AMD EPYC Milan(largest last-level cacheper core)2-112 vCPUs, 4 GB/vCPU,up to 3 TB local SSD(Compute-intensive)Largest VM sizes• Memory-bound workloads• Gaming (AAA gameservers)• High-performancecomputing (HPC)• High-performancedatabases• Electronic DesignAutomation (EDA)• Media transcodingH3Intel Sapphire Rapids +Google IPU88 cores, 352 GB DDR5(Compute-intensive)HPC-focused• High-performancecomputing (HPC)• Electronic DesignAutomation (EDA)
Compute-optimized series: highest performance per core.

Memory-optimized (M1, M2, M3)

Most memory per instance and the lowest cost per GB of memory. For high memory-to-vCPU ratios beyond what general-purpose high-memory types offer.

ProcessorMemoryWorkloadApplicationsM1-up to 4 TB(Ultra high-memory)Lowest cost per GB• Medium in-memorydatabases (SAP HANA)• In-memory analytics &business warehousing (BW)• Genomics analysis, SQLanalysis services• Microsoft SQL Serverand similar databasesM2-up to 12 TB(Ultra high-memory)Largest in-memory DBs• Large in-memorydatabases (SAP HANA)• In-memory analytics &business warehousing (BW)• Genomics analysis, SQLanalysis servicesM3Intel Ice Lakeup to 128 vCPUs, up to30.5 GB/vCPU(Ultra high-memory)Balanced memory + compute• OLAP and OLTP SAPworkloads• Memory-intenseElectronic DesignAutomation (EDA)
Memory-optimized series: most memory per instance, lowest cost per GB.
NumbersMemory-optimized discounts
  • M1/M2 offer the lowest cost per GB of memory on Compute Engine.
  • Up to 30% sustained use discount, plus committed-use discounts adding >60% savings on 3-year commitments.

Accelerator-optimized (A2, G2)

For workloads that require GPUs - massively parallel CUDA compute (ML, HPC).

GPUSizeWorkloadApplicationsA2up to 16 NVIDIA AmpereA100 (40 GB each)12-96 vCPUs, up to 1,360GB(GPU / HPC) Optimized forhigh-performancecomputing• CUDA-enabled MLtraining & inference• High-performancecomputing (HPC)• Massive parallelizedcomputation• LLMs, databasesG2NVIDIA (Cascade Lake CPU)4-96 vCPUs, up to 432 GB(GPU / HPC) Optimized forhigh-performancecomputing• CUDA-enabled MLtraining & inference• Video transcoding• Remote visualizationworkstations
Accelerator-optimized series: attached GPUs for CUDA ML and HPC.

Custom machine types

When no predefined type fits, set vCPUs and memory independently. Costs slightly more than an equivalent predefined type, so only use custom when your vCPU:memory ratio falls between predefined types, or you need more RAM/CPU without jumping to the next larger (over-provisioned) predefined type. Supported on E2, N2, N2D.

NumbersCustom machine type limits
  • Only 1 vCPU or an even number of vCPUs.
  • Memory between 1 GB and 8 GB per vCPU.
  • Total memory must be a multiple of 256 MB.
  • Need more than 8 GB per vCPU? Pay for extended memory to exceed the ceiling (e.g. N-series up to ~624 GB).