Managed service · Container-compatible

Batch

Managed scheduling of batch and HPC jobs on Compute Engine VMs, including Spot VMs and GPUs.

When to use it

Choose Batch for large numbers of scripts or containers — simulations, rendering, genomics, risk models, ML training and data processing — where you want VMs created, scheduled and deleted for you, with Spot VMs to cut cost. MPI workloads can run tightly coupled tasks with compact placement.

When not to use it

Avoid Batch for always-on services or request-driven APIs; use Cloud Run or GKE. Simple container jobs are often easier as Cloud Run jobs.

Trade-offs at a glance

Hosting model Managed service
Container support Container-compatible
Minimum nodes 0 (VMs are created per job)
State management Stateless (jobs read and write Cloud Storage, Filestore or Parallelstore)
Web hosting Not applicable
Autoscaling Built-in (VMs per job)
Load balancer Not applicable
Scale limit Bounded by the project's regional CPU and GPU quotas
Multiregion Single region per job
Virtual network integration Native (VMs in your VPC network)
Hybrid connectivity Through the VPC
GPU support Supported (GPU machine types)
TLS Not applicable
Architecture styles Big compute (HPC)
Required skills Scripting or containers, job scheduling, HPC concepts
Operational overhead Low — Google provisions VMs, schedules tasks and cleans up
Best for teams Data, research and engineering teams running large job volumes

Frequently asked questions

Is there a charge for Google Cloud Batch?

No. You pay for the Compute Engine VMs, GPUs and disks the jobs run on, which can be Spot VMs at a large discount.

Batch or Cloud Run jobs?

Cloud Run jobs are simpler for containers that fit Cloud Run's CPU and memory limits. Batch gives you any machine type, GPUs, MPI, local SSDs and much larger parallel jobs.

Can Batch run on Spot VMs?

Yes. Set the provisioning model to Spot, and use task retries so tasks run again if Compute Engine preempts a VM.

Starting point, not a verdict

This is one candidate from the Google Cloud compute decision wizard. The right choice depends on your full requirements — evaluate scaling, cost, and operational fit before committing.

Run the Google Cloud wizard →