Vmware Cluster Slot Size Calculation

First of all, what is a slot size? The Host Failures Cluster Tolerates admission control policy uses the slot size calculation to determine how many virtual machines can be powered on in a cluster. This policy is set in the cluster settings:

Vmware Cluster Slot Size Calculation Tool

You can view the current calculation by checking the cluster’s Advanced Runtime Info:

  1. Feb 11, 2016 esx252 - 8.1.994 cpu and 32762.87MB Memory If I go to run time info of cluster in vmware I can it has used 32MHz 1, Virtual CPU and 40MB memory slot size. Then it says total slot is 691 and failover slot is 422.
  2. Gaurav, That’s correct the calculations do apply to hosts which have homogenous clusters, one of the recommended best practices of HA cluster is to have homogenous hosts in the cluster so that the cluster is not unbalanced, which means failure of a high configured host (CPU/Memory) results in not all the virtual machines getting powered on due to lack of resources in the rest of the hosts.

Vmware Cluster Slot Size Calculation Chart

A slot represents the minimum CPU and memory resources that are required to support any powered-on virtual machine in the cluster. With the failover level policy in place, HA uses the following slot calculations to control virtual machine migration within the cluster: Calculate the slot size from CPU and memory reservations.

This is the runtime info for a two host cluster:

Generally, one virtual machine = 1 used slot. In the example above, I have seven powered on virtual machines and seven used slots in the cluster. To calculate the slot size for a cluster, HA uses the highest CPU reservation of any virtual in the cluster, and the highest memory reservation for any virtual machine in the cluster. If no reservations are set then CPU will be set as 32 Mhz (see screenshot above) and memory will be set as 0MB + the memory overhead. In the example above this is 84 MB.

Changing the memory and cpu reservations on one VM in the cluster, setting CPU to 64Mhz and memory to 128MB has the following effect on the cluster lost calculations:

The slot size has increased, whilst the total number of available slots has decreased accordingly. The available slots count is determined by dividing the total cpu capacity of a host by the CPU slot size and the total memory capacity of the host by the memory slot size. The lowest number from the two is set as the number of slots available. The example shown above shows that setting reservations on a single VM can drastically alter the slot size calculation and will lead to you being able to power on less virtual machines.

Vmware Cluster Slot Size Calculations

It’s generally recommended to use Resource Pools rather than reservations directly on individual virtual machines, as this won’t skew the slot size calculations. However, when virtual machine CPU and memory reservations are set, there a some advanced cluster options that allow us to set a custom slot size. These values are all set in the cluster advanced settings screen.

Vmware Cluster Slot Size Calculation

The first two options, das.slotcpuinmhz and das.slotmeminmb allow you to set a custom value for the CPU and memory slot sizes:

Vmware cluster slot size calculation tool

Vmware Cluster Slot Size Calculation Calculator

These new settings can then be seen in the cluster runtime info:

Vmware Cluster Slot Size Calculation Calculator

If these settings are used, and there are virtual machines with higher reservations than the values specified, then HA will assign multiple slots to it.