From 51e285e5833faeb90ce7837ead622d0db68db275 Mon Sep 17 00:00:00 2001 From: Zhanghao Wu Date: Mon, 26 Feb 2024 13:16:33 -0800 Subject: [PATCH] [GCP] Fix spot with machine image (#3236) * Fix configuration for spot VMs * Add preemptible back * Add preemptible and automaticrestart to false * Additional property --- sky/templates/gcp-ray.yml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sky/templates/gcp-ray.yml.j2 b/sky/templates/gcp-ray.yml.j2 index 7a92c4d4429..c406ea32367 100644 --- a/sky/templates/gcp-ray.yml.j2 +++ b/sky/templates/gcp-ray.yml.j2 @@ -133,6 +133,10 @@ available_node_types: {%- if use_spot or gpu is not none %} scheduling: {%- if use_spot %} + automaticRestart: false + instanceTerminationAction: DELETE + onHostMaintenance: TERMINATE + provisioningModel: SPOT preemptible: true {%- endif %} {%- if gpu is not none %}