Preemptible Instances - Google Compute Engine

Preemptible Instances - Google Compute Engine

Use preemptible instances to control costs for workloads which are not sensitive to individual machine failures, such as batch jobs.

Overview

A preemptible instance is a lower-cost Google Compute Engine virtual machine. For example (as of March 1, 2017), a single CPU machine costs $0.05/hour but a the same machine costs $0.01/hour as a preemptible instance. This lower costs comes with some caveats:

  • Preemptible Instances run for a maximum of 24 hours.
  • Preemptible Instances may be “preempted” (shutdown) by Google at any time. You get about 30 seconds to run a shutdown script.
  • Preemptible Instances may not be available if Compute Engine does not have excess capacity.

Examples