OpenVZ Forum


Home » General » Support » equal resources on all my vps'es
equal resources on all my vps'es [message #36241] Mon, 01 June 2009 12:54 Go to next message
Krisken is currently offline  Krisken
Messages: 2
Registered: June 2009
Junior Member
One of my friends have set up openvz on a server, so that i can use one server in stead of 4 servers.

The hardware node has 4GB of ram. I want to give each vps (4 vps'es on the system, will never be more) 512MB of ram, and the 2GB is for the hardware node and the burstable ram.

How do I have to set this up when the ID's of my vps'es are 156-157-158-159?

Second question : the hardware node has 2x500GB in raid one harddisks. How can i ensure each vps with 100GB of harddisk space? (and 100 for the hardware node)

Thanks for any answer!
Re: equal resources on all my vps'es [message #36242 is a reply to message #36241] Mon, 01 June 2009 12:57 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

http://wiki.openvz.org/Resource_management

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: equal resources on all my vps'es [message #36244 is a reply to message #36242] Mon, 01 June 2009 13:18 Go to previous messageGo to next message
Krisken is currently offline  Krisken
Messages: 2
Registered: June 2009
Junior Member
Thank your for your really quick answer!

This is what i've done so far:

VPS 156 : 100GB diskspace (125GB burst)
vzctl set 156 --diskspace 100G:125G --save
VPS 157 : 100GB diskspace (125GB burst)
vzctl set 157 --diskspace 100G:125G --save
VPS 158 : 100GB diskspace (125GB burst)
vzctl set 158 --diskspace 100G:125G --save
VPS 156 : 25GB diskspace (50GB burst)
vzctl set 157 --diskspace 25G:50G --save

VPS 156 : 512MB ram
vzctl set 156 --kmemsize 512k --save
VPS 157 : 512MB ram
vzctl set 157 --kmemsize 512k --save
VPS 158 : 512MB ram
vzctl set 158 --kmemsize 512k --save
VPS 159 : 256MB ram
vzctl set 159 --kmemsize 256k --save

So now VPS 156-157-158 should have 100GB diskspace and 512MB ram (with 125GB diskspace if bursted). But i didn't find which command i have to use for the 1GB bursted ram. Could you please explain that for me?
Re: equal resources on all my vps'es [message #36246 is a reply to message #36244] Mon, 01 June 2009 13:24 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

1. kmemsize is just a kernel memory used on behalf of VE. Your VEs mostly need user memory (this is privvmpages).

2. We do not have "burstable RAM" concept in OpenVZ. This is a vague term that either LxLabs or somebody else have invented, so ask them.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: equal resources on all my vps'es [message #36247 is a reply to message #36246] Mon, 01 June 2009 13:24 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

3. You can use vzsplit utility to create a config for 4 VEs.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: Anyone find a max VM limit?
Next Topic: Problem in vestat output
Goto Forum:
  


Current Time: Sun Jul 28 13:22:54 GMT 2024

Total time taken to generate the page: 0.04470 seconds