simonadams
Contributor
Contributor

Allocating resource pool shares dynamically

Among our clusters we have two that host VDI images. These are divided up into many resource pools, some of which have one or two VM's and some of which have many. Added to this, whenever users disconnect or logoff the Leostream connection broker suspends or powers down the VM, meaning that the usuage of the different pools is constantly changing.

Is there a way to dynamically adjust the share values for these resource pools ?

weinstein5 pointed me to a script here -> http://www.yellow-bricks.com/2010/02/24/custom-shares-on-a-resource-pools-scripted/

However;

1) This doesn't work for me. NumCPUShares is null or empty on Set-ResourcePool for some resource pools, which I can't explain unless the commands have changed for vSphere. Is there a new version of the script somewhere ?

2) It hardly seems ideal to be running this every half an hour or so. Surely there is a way to do it more dynamically (or should we simply not be using resource pools and try and isolate the VM groups through naming conventions or something like that ?

0 Kudos
1 Reply
simonadams
Contributor
Contributor

On question 1, I added additional entries in the weighting section for all the resource pools. Doh!

Would still be interested in whether there is a more dynamic way of doing this (q2)...

0 Kudos