Add option to setup preemptible VMs #408
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR that adds an option to set a preemptible VM on the component spec level.
This can be done by setting
preemptible
to True at theOp
level. Note that you also need to assign a preemptible nodepool. I have already setup some preemptible nodepools in this PRCaveat: seems like kfp currently only enables setting up preemptibles on a GCP cluster since this functionaliteis seems to be tightly integrated with GKE. More info [here](
Preemptible nodepools can only run up to 24 hours link
We can think later on incorporating a retry mechanism once the issue with Dask is fixed. For now those VMs can be used to reduce development costs.