Diagram

A vertical sequence diagram between Compute Engine and a RUNNING Spot VM showing in order: metadata preempted=TRUE, ACPI G2 Soft Off with shutdown script, up to 30-second shutdown period, then ACPI G3 Mechanical Off leading to STOP to TERMINATED or DELETE.
Preemption Process and Termination Notice
Preemption is the process where Compute Engine reclaims Spot VM capacity by stopping or deleting the VM. A workload detects coming preemption because Compute Engine updates the preempted value in the VM default metadata to TRUE. The preemption notice duration is the time between that metadata signal and the shutdown signal, and it is set when the Spot VM is created to either 0 seconds or 120 seconds.
Compute Engine preempts a Spot VM through an ordered sequence:
preempted to TRUE, which the workload monitors to detect preemption.STOP or DELETE.Domain 7 of 11
24 practice questions
Practice this DomainLast updated