OpenVZ Forum


Home » General » Support » OpenVZ Density
Re: OpenVZ Density [message #32275 is a reply to message #32273] Wed, 30 July 2008 03:25 Go to previous messageGo to previous message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Well, if you are one who doesn't want to overcommit your RAM, just take the amount of RAM you have and divide it by the amount of RAM you want each container to have. Oh, btw... your RAM includes swap so don't forget to include that in your calculation.

You might want to run a few vzsplit commands and see how it parcels things out.

There isn't a real formula for container density because what services you run in a container and the resources it needs may vary greatly from container to container.

The scenarios you see in some of the examples are using the minimal config template I believe... and like you mentioned, they are pretty worthless for real world deployments... but you should be able to install a minimal OS Template in them... that has almost nothing running when it starts up. I believe I saw one OS Template, don't remember which, that had like 3 processes running at startup. You can probably fit that in ~6MB of RAM.

I have a two containers that basically run minimal services plus apache as a Linux distro repo server... and they seem to use about 48MB of RAM when I look at them... but I'm sure there are times when they use more. I have given them much more RAM than they use... because on the host nodes they are running on there is a surplus of resources.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Remove an ostemplate from openvz
Next Topic: Question on Load Balancing
Goto Forum:
  


Current Time: Mon Nov 04 11:01:11 GMT 2024

Total time taken to generate the page: 0.03509 seconds