Saturday, June 18, 2016

virtualization - What is the easiest Linux containers solution?



I've opted for 'virtualizing' some software using a containers solution.



However I lack experience with this, and was wondering if anyone could vouch for either V-Server or OpenVZ ?



I'm mostly concerned with ease of use during setup and maintenance, since feature-wise they seem to be on par with each other.


Answer



I used they both in production environments. While VServer uses the 100% of the host operating system resources, OpenVZ resource shortage is very grained: memory, cpu consumption, quotas (two levels, per container and per user/group inside a container), ipfilter entries, etc. OVZ also supports soft and hard limits: You have a memory limit (soft) of 512MB, but also a hard limit of 768MB. Your container may use up to 512 Mb, but if more is needed, it will take up to 768MB.




If you are planning to use all of your machine, Linux-Vserver is your solution due it simple configuration and zero resource checking if any container gets small for their processes, it scales along all your containers.



Now, if you want all control, OpenVZ is the path to follow. But, be careful, you should check if any container is getting small and assign more resources to it. I use OpenVZ for many things, for example, one NS server with 256MB of ram and 5GB disk space.



You should check both and finally choose the one who best fits into your requeriments.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...