Skip to content

Commit

Permalink
[GCP] Fix spot with machine image (#3236)
Browse files Browse the repository at this point in the history
* Fix configuration for spot VMs

* Add preemptible back

* Add preemptible and automaticrestart to false

* Additional property
  • Loading branch information
Michaelvll authored Feb 26, 2024
1 parent 097aceb commit 51e285e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sky/templates/gcp-ray.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 51e285e

Please sign in to comment.