frankdenneman Frank Denneman is the Machine Learning Chief Technologist at VMware. He is an author of the vSphere host and clustering deep dive series, as well as podcast host for the Unexplored Territory podcast. You can follow him on Twitter @frankdenneman

Resource pools and avoiding HA slot sizing

1 min read

Virtual machines configured with large amounts of memory (16GB+) are not uncommon these days. Most of the time these “heavy hitters” run mission critical applications so it’s not unusual setting memory reservations to guarantee the availability of memory resources. If such a virtual machine is placed in a HA cluster, these significant memory reservations can lead to a very conservative consolidation ratio, due to the impact on HA slot size calculation. (For more information about slot size calculation, please review the HA deep dive page on yellow-bricks.com.)
There are options to avoid creation of large slot sizes. Such as not setting reservations, disabling strict admission control, using vSphere new admission control policy “percentage of cluster resources reserved” or creating a custom slot size by altering the advanced settings das.vmMemoryMinMB.
But what if you are still using ESX 3.5, must guarantee memory resources for that specific VM, do not want to disable strict admission control or don’t like tinkering with the custom slot size setting? Maybe using the resource pool workaround can be an option.
Resource pool workaround
During a conversation with my colleague Craig Risinger, author of the very interesting article “The resource pool priority pie paradox”, we discussed the lack of relation between resource pools reservation settings and High Availability. As Craig so eloquently put it:

“RP reservations will not muck around with HA slot sizes”

High Availability ignores resource pools reservation settings when calculating the slot size, so if a single VM is placed in a resource pools with memory reservation configured, it will have the same effect on resource allocation as per VM memory reservation, but does not affect the HA slot size.
By creating a resource pool with a substantial memory setting you can avoid decreasing the consolidation ratio of the cluster and still guarantee the virtual machine its resources. Publishing this article does not automatically mean that I’m advocating using this workaround on a regular basis. I recommend implementing this workaround very sparingly as creating a RP for each VM creates a lot of administrative overhead and makes the host and cluster view a very unpleasant environment to work in.
A possible scenario to use this workaround can be when implementing MS Exchange 2010 mailbox servers. These mailbox servers are notorious for demanding a huge amount of memory and listed by many organizations as mission critical servers.
To emphasize it once more, this is not a best practice! But it might be useful in certain scenarios to avoid large slots and therefore low consolidation ratios.

frankdenneman Frank Denneman is the Machine Learning Chief Technologist at VMware. He is an author of the vSphere host and clustering deep dive series, as well as podcast host for the Unexplored Territory podcast. You can follow him on Twitter @frankdenneman

5 Replies to “Resource pools and avoiding HA slot sizing”

  1. Nice workaround Frank. Having just implemented a vSphere cluster we were having HA capacity issues as soon as setting a reservation for a VM. We didn’t want to turn off strict admission control and I didn’t want to mess with the advanced slot size settings for fear of causing slot fragmentation as mentioned in Duncan’s deepdive.
    So it turns out I used a similar workaround to yourself, however I did this with groups of VM’s as opposed to single VM’s.
    So I created resource groups for DEV, UAT, Production, etc and placed VM’s within these. The resource groups have reservations and limits, staggered in such a way that DEV is likely to have contention but production is not as it has been assigned more resources. Using shares within the resource group then allows us to prioritise what gets what in a contention scenario within the resource group. This model is working fine for us just now.
    If however I ever have to isolate a machine on it’s own I would definately look to your workaround first before changing advanced slot settings or turning off strict admission control.

  2. I utilized this work around with the Cisco Nexus 1000v VSMs. The VSMs come configured with a memory reservation 2GB. With this reservation set, the number of available HA slots in 10 host cluster was very small. I created a resource pool with the necessary memory reservation and moved the VSMs in these resource pools. This solved my issue with the number of available slots in my HA cluster.

Comments are closed.