VMware Cloud Community
AlexA123
Contributor
Contributor
Jump to solution

How to create even Resource Pools

We have 2 departments under a single host and I whish to divide the resources (CPU, memory) evenly between the departments.

If deparment "A" is not working (VMs are shutdown) it is ok that department "B" will receive more than 50% of the resource, but as soon as department "A" will power-on VMs the resources should be split evenly again.

I was thinking to use "Shares", both for CPU and Memory to accomplish that. From what I read I understand that if I use the same value for both departments they will have the same priority. So it doesn't matter if I give both departments Shares=High or Shares=zero.

These are the resource pool values, both for CPU and memory:

Shares=0

Reservation=0

Explandble Reservation=Checked

Limit=Unlimited

Will this give me the wanted behavior?

Reply
0 Kudos
1 Solution

Accepted Solutions
vMario156
Expert
Expert
Jump to solution

Ok if your target is to split the availible resources 50:50 between two departmens you can sure go with your example above.

This can lead to a huge missbalancing if the number of VMs below each pool is totaly different. But for sure it depends on the use case if this make sense or not.

Regards,

Mario

Blog: http://vKnowledge.net

View solution in original post

Reply
0 Kudos
8 Replies
vMario156
Expert
Expert
Jump to solution

I would suggest you to read this article from Chris to get a better understandig of resource pools, because a miss configuration can have a huge impact.

http://wahlnetwork.com/2012/02/01/understanding-resource-pools-in-vmware-vsphere/

Also keep in mind that the whole share mechanism first applies if your esxi hosts are under contention (of course this does not apply to limits and reservations).

Regards,

Mario

Blog: http://vKnowledge.net
AlexA123
Contributor
Contributor
Jump to solution

From the article you sent its obvious I should not use a value of Shares=0.

But still I don't understand what is the correct configuration -

I want both resource pools to be divided evenly, regardless to the number of VMs under each resource pool.

To clarify our requirments:

Supose the host has 20GHz CPU and 32GB memory.

I want to split it evenly between the 2 resource pools:

resource pool "A" will get 10GHz CPU and 16GB memory.

resource pool "B" will get 10GHz CPU and 16GB memory.

Under resource pool "A" we have 2 VMs.

Under resource pool "B" we have 10 VMs.

If the resources are split evenly then:

Each VM in resource pool "A" will get  5GHz CPU and 8GB memory.

Each VM in resource pool "B" will get  1GHz CPU and 1.6GB memory.

If I accomplish this it is gr8!

It's even better if one of the pools can get extra resources in case they are not in use by the other resource pool.

Reply
0 Kudos
vMario156
Expert
Expert
Jump to solution

Your example is correct.

So if you want to have all VMs the same amount of resources availible, your resource pools configuration will only be identical if the number of VMs are the same below each pool.

Regards,

Mario

Blog: http://vKnowledge.net
Reply
0 Kudos
vMario156
Expert
Expert
Jump to solution

By the way you will have the same result when you don´t use resource pools at all Smiley Happy

Blog: http://vKnowledge.net
Reply
0 Kudos
AlexA123
Contributor
Contributor
Jump to solution

Impossible, then in that case I wasn't clear:

We have several departments, if one of them will start too many VMs I want it to be only their problem - other departments should not be effected.

Only the VMs of that department will run slow, other VMs of other departments will keep running fast.

This will force the users of the department to stop some VMs which belongs to that department.

Reply
0 Kudos
vMario156
Expert
Expert
Jump to solution

Ok if your target is to split the availible resources 50:50 between two departmens you can sure go with your example above.

This can lead to a huge missbalancing if the number of VMs below each pool is totaly different. But for sure it depends on the use case if this make sense or not.

Regards,

Mario

Blog: http://vKnowledge.net
Reply
0 Kudos
AlexA123
Contributor
Contributor
Jump to solution

10x a lot.

Reply
0 Kudos
dcorrigan1
Contributor
Contributor
Jump to solution

I loved that article and actually wrote a perl script to help me automate resource pool share management for our environment.

Check it out..

http://communities.vmware.com/docs/DOC-23680

Cheers,

Dan

Reply
0 Kudos