News for hackers. Stuff that matters.
Re:Introducing Preemptible VMs by andybak on Monday May 18, 2015 @09:46AM (#9564366)
Any reason you couldn't use these for conventional web stuff? 30 seconds could easily be long enough to bring up another instance and sync data if needed.
Re:Introducing Preemptible VMs by spankalee on Monday May 18, 2015 @10:43AM (#9564707)
No reason at all. If you have enough preemptible VMs, and they spin up fast enough, then when one goes down, just spin up another. If for some reason GCE's overall preemptible spare capacity drops and you can't get a new one and it's important to you, then spin up a regular VM.
Re:Introducing Preemptible VMs by CydeWeys on Monday May 18, 2015 @10:28AM (#9564613)
By "conventional web stuff", do you mean serving a website or similar? Yeah, I don't think it makes sense to host a website on a service that is preemptible. You need your webserver available to respond to requests 24/7. It can't just randomly go down. Pre-emptible instances are more suited for batch processing and big data computation runs.
Re:Introducing Preemptible VMs by comex on Monday May 18, 2015 @10:41AM (#9564691)
If you have a website that can be distributed among arbitrarily many frontend servers, it could make sense to put them on preemptible instances, with the database on a regular instance. (In the unlikely case no preemptible instances are available, you could always automatically switch the frontend servers to regular ones.) However, I think this could only possibly be efficient pricing-wise if your traffic was extremely bursty.
Re:Introducing Preemptible VMs by tedchs on Monday May 18, 2015 @11:48AM (#9565097)
That could be an interesting model if your web app is a single-page / static app served from Google Cloud Storage, with Javascript making AJAX calls to your backend and configured to gracefully handle transient errors as servers come and go.
Re:Introducing Preemptible VMs by sologoub on Monday May 18, 2015 @11:23AM (#9564961)
You'd have to make sure that if a node gets terminated while processing a request, that request can be re-routed to a live VM. Unless you don't care about users randomly seeing errors of course.
Re:Introducing Preemptible VMs by giulianob on Monday May 18, 2015 @11:39AM (#9565045)
They give you 30 seconds to shut down. Should be plenty of time to gracefully end your current requests and shut down the web server.
Re:Introducing Preemptible VMs by breakingcups on Tuesday May 19, 2015 @10:34AM (#9570312)
Is it enough time to spin up a new instance though, if needed?
Re:Introducing Preemptible VMs by ErikRogneby on Monday May 18, 2015 @11:10AM (#9564882)
I would say it depends on the size of your pool. 30 seconds _is not_ long enough to bring up another instance.
Re:Introducing Preemptible VMs by hillsarealiv3 on Monday May 18, 2015 @03:04PM (#9566239)
EC2 spot instances give 2 minutes notice...