News for hackers. Stuff that matters.
Re:AWS EC2 Container Service by eropple on Thursday November 13, 2014 @09:26PM (#8605522)
VM overhead isn't trivial. It still remains a pretty big factor in terms of cost bloat for CPU-bound stuff. Also, VMs take a godawful long time to start up; if you care about, say, responding to load within ten seconds, VMs aren't a great choice.

They're fine for a lot of things, of course. I use them all the time. But I use containers for other things.

Re:AWS EC2 Container Service by e1g on Thursday November 13, 2014 @10:56PM (#8605747)
I recall several reliable testers confirming that the CPU overhead of virtualisation was negligible, somewhere around 2%. Unfortunately I could not quickly find those papers now, but I did find a old VMWare whitepaper[1] showing they had ~7% overheard 5+ years ago, which sounds about right considering what kind of advancements they would have made in half a decade.

[1] http://www.vmware.com/pdf/hypervisor_performance.pdf

Re:AWS EC2 Container Service by richmarr on Friday November 14, 2014 @02:46AM (#8606211)
Sounds feasible, but CPU usage isn't really talked about as an advantage of containers.

I expect startup time and memory usage would be lower, but to my mind the advantages are mainly around flexibility... e.g. How long it takes to create or upload an image file. How long it takes to set up a minimal infrastructure with several components to it on a single EC2 instance. Decoupling the operating system patch cycle from the app deployment image generation cycle. etc.

Re:AWS EC2 Container Service by buster on Friday November 14, 2014 @04:45AM (#8606430)
It's just MUCH more memroy efficient to run containers and also VMs typically have worse I/O throughput. CPU scores are fine though.

As an example i am running around 20 containerized servers on my Laptop in a 4GB VM which would typically be run on 20 distinct VMs on one or more hypervisors. It's not very fast but the density of servers you can put on your hardware is MUCH bigger.

Re:AWS EC2 Container Service by gonzi25 on Thursday November 13, 2014 @11:22PM (#8605797)
"if you care about, say, responding to load within ten seconds, VMs aren't a great choice."

That's actually exactly why I would use a VM..

Re:AWS EC2 Container Service by eropple on Friday November 14, 2014 @01:19PM (#8608583)
You can spin up, configure, and push into production an application in a new virtual machine in ten seconds? I'd like to see proof of that.

The best I've managed was ninety seconds on my own hardware and three minutes (on average) in AWS.

Re:AWS EC2 Container Service by gonzi25 on Saturday November 15, 2014 @12:37AM (#8610945)
Ah sorry! I didn't think you meant literally "10 seconds", was assuming you just meant quickly (a few minutes).

I can't really think of a use case though where someone would need more capacity in sub 10 seconds. Maybe if you only intend to scale horizontally with a bunch of 500Mb instances and had little to no room to set an appropriate scaling threshold? What would be a couple examples? With the apps I've seen the past several years generally they have scaling thresholds at 'X' resource and 3 minutes is more than enough to provision extra capacity for their needs.

Re:AWS EC2 Container Service by gonzi25 on Saturday November 15, 2014 @12:40AM (#8610950)
Also, kind of ironic but your site is giving me a 503 :p