Skip to content

Commit 51e285e

Browse files
authored
[GCP] Fix spot with machine image (#3236)
* Fix configuration for spot VMs * Add preemptible back * Add preemptible and automaticrestart to false * Additional property
1 parent 097aceb commit 51e285e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sky/templates/gcp-ray.yml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ available_node_types:
133133
{%- if use_spot or gpu is not none %}
134134
scheduling:
135135
{%- if use_spot %}
136+
automaticRestart: false
137+
instanceTerminationAction: DELETE
138+
onHostMaintenance: TERMINATE
139+
provisioningModel: SPOT
136140
preemptible: true
137141
{%- endif %}
138142
{%- if gpu is not none %}

0 commit comments

Comments
 (0)