Preemptible VMs are VM instances that may be forcibly stopped at any time. This can occur in two cases:
- If 24 hours passed after the VM was started.
- If there are insufficient resources to launch a regular VM in the same availability zone. Such an event is usually unlikely, but this may vary day to day.
Preemptible VMs are available at a lower price than regular ones. However, they do not provide fault-tolerance.
This will change pricing for the VM instance. For more information, see our pricing policy.
In addition to the fact that preemptible VMs can be forcibly stopped, they have the following limitations:
- If there are not enough resources in the specified availability zone to launch a preemptible VM, it will not get launched.
Working with preemptible VMs
When a preemptible VM is stopped, it is not deleted and all its data is saved. When you need the VM again, you can just start it.
With Instance Groups, preemptible VMs in the group get stopped after a random interval of 22 to 24 hours, rather than exactly after 24 hours. This helps avoid situations when all VMs in the group restart at the same time and stop handling the load of running applications.