Hacker News new | past | comments | ask | show | jobs | submit login

I wonder how big the chance is that the machine is turned off in the first hour.

I use Google Compute for some personal project and the typical run time for a VM is about 10 - 20 minutes. If the vm has 90% chance to survive the first hour, it could be worth the trouble to make my process more fault tolerable.




We're not ready to put hard numbers on it. As our docs (https://cloud.google.com/compute/docs/instances/preemptible) say:

The probability that Compute Engine will terminate a preemptible instance for a system event is generally low, but may vary from day to day and from zone to zone depending on current conditions.

Give it a shot in us-central1-a and let us know how it goes!

[Edit to undo my quote text (it wrapped poorly)]


I couldn't figure out from the docs, can one restart a preempted preemptible instance, or needs to start a different one? Would it be possible to restart in non-preemptible mode, so the job completes but at a higher price? We still want to complete our workloads, one way or another :)


Yes you can start a VM back up via gcloud:

   gcloud compute instances start instance-name
Note of course that if you got preempted because we needed the capacity back for regular VMs (as opposed to say a maintenance event) you may not be able to start a new Preemptible VM in that zone.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: