4 ms·
I'm not sure I'm asking this question correctly, but what kind of performance hit do I take by using a Docker container within an EC2 instance instead of just r
by gtaylor 13y ago
I'm not sure I'm asking this question correctly, but what kind of performance hit do I take by using a Docker container within an EC2 instance instead of just running straight on the EC2 instance's userspace?
I'm not looking for any kind of concrete number, but let's say I've got a Postgres running on an m1.large. Any idea how running Postgres under Docker would change my performance characteristics?
- fintler 13y agoAlmost nothing in most cases, but it depends on what you're doing. Take a look at the benchmarks for lxc. http://lxc.sourceforge.net/index.php/about/kernel-namespaces/network/benchs/ http://lxc.sourceforge.net/index.php/about/kernel-namespaces... Postgres is a beast tho (albeit a cute and friendly beast), it's probably doing something weird that lxc won't like.
- shykes 13y agoThat's correct, you can approximate the overhead of LXC (and any other similar containerization such as OpenVZ, Solaris Zones, BSD jails etc.) as zero. In terms of performance they are closer to chroot than to a virtual machine.