r/cloudcomputing • • Nov 24 '16

Availability of Preemptible VMs in Google Cloud?

Hi, does anybody have experience with preemptive VMs and their availability? We are at the moment evaluating if GCP would be a better fit for our company, but we are heavily dependent on the cheap prices that AWS offers on their spot instances. We would typically use machines in the range of n1-standard-32 or n1-highmem-32. Best regards

7 Upvotes

3 comments sorted by

3

u/[deleted] Nov 25 '16

There's no problem with availability, but I've only tried it with a very small project so I don't know what it would be like with -32's in significant quantities.

Note that preemptible VMs have a fixed hourly price set by Google rather than fluctuating with market forces like AWS spot instances. The VMs are also stopped automatically after at most 24 hours (or sooner if preempted), but you can promptly restart them.

Note that spot instances on AWS are terminated (i.e., the virtual machine goes away, and only a virtual storage drive is optionally left behind, which can later be mounted on a new virtual machine), whereas preemptible VMs on Google Cloud are merely stopped (i.e., the virtual machine gets shut down but you can reboot it).

I think the AWS c4 instances run on a faster processor (2.9 GHz) than the Google Cloud VMs, so that's something to take into consideration when comparing the pricing for a CPU bound application.

1

u/tastefulpreacher Nov 28 '16

Thanks for the reply, we a bit of a varied need for these machines. Sometimes we will need 10-20 during a few days sometimes we will need 200. Doesn't matter if they go down our computing is resilient to this since we already doing it with AWS spot instances.

1

u/ok_devalias Nov 29 '16

If sudden interruption of some or all of the instances is not a problem, you may look at this project for an approach to balancing preemptive vms over zones and/or regions: https://github.com/skelterjohn/prevmtable

I'm not sure how up to date it is, personally, but I will check with the author.