HA and Slot sizes

This has always been a hot topic, HA and Slot sizes/Admission Control. One of the most extensive (Non-VMware) articles is by Chad Sakac aka Virtual Geek, but of course since then a couple of things has changed. Chad commented on my HA Deepdive if I could address this topic, here you go Chad.

Slot sizes

Lets start with the basics.

What is a slot?

A slot is a logical representation of the memory and CPU resources that satisfy the requirements for any powered-on virtual machine in the cluster.

In other words a slot size is the worst case CPU and Memory reservation scenario in a cluster. This directly leads to the first “gotcha”:

HA uses the highest CPU reservation of any given VM and the highest memory reservation of any given VM.

If VM1 has 2GHZ and 1024GB reserved and VM2 has 1GHZ and 2048GB reserved the slot size for memory will be 2048MB+memory overhead and the slot size for CPU will be 2GHZ.

Now how does HA calculate how many slots are available per host?

Of course we need to know what the slot size for memory and CPU is first. Then we divide the total available CPU resources of a host by the CPU slot size and the total available Memory Resources of a host by the memory slot size. This leaves us with a slot size for both memory and CPU. The most restrictive number is the amount of slots for this host. If you have 25 CPU slots but only 5 memory slots the amount of available slots for this host will be 5.

As you can see this can lead to very conservative consolidation ratios. With vSphere this is something that’s configurable. If you have just one VM with a really high reservation you can set the following advanced settings to lower the slot size being used during these calculations: das.slotCpuInMHz or das.slotMemInMB. To avoid not being able to power on the VM with high reservations these VM will take up multiple slots. Keep in mind that when you are low on resources this could mean that you are not able to power-on this high reservation VM as resources are fragmented throughout the cluster instead of located on a single host.

Host Failures?

Now what happens if you set the number of allowed host failures to 1?
The host with the most slots will be taken out of the equation. If you have 8 hosts with 90 slots in total but 7 hosts each have 10 slots and one host 20 this single host will not be taken into account. Worst case scenario! In other words the 7 hosts should be able to provide enough resources for the cluster when a failure of the “20 slot” host occurs.

And of course if you set it to 2 the next host that will be taken out of the equation is the host with the second most slots and so on.

What more?

One thing worth mentioning, as Chad stated with vCenter 2.5 the number of vCPUs for any given VM was also taken in to account. This led to a very conservative and restrictive admission control. This behavior has been modified with vCenter 2.5 U2, the amount of vCPUs is not taken into account.




You can skip to the end and leave a response. Pinging is currently not allowed.

10 Responses to “HA and Slot sizes”

  1. Frank Wegner says:

    If you do not want to tweak advanced parameters you could also check if you really need the large exceptional reservations. Reducing the reservation will also increase the HA slot size. One example I know: a single VM with 40 GB memory reservation crippled HA (failover capacity = 0), setting the reservation to 10 GB helped a lot.

  2. Frank Wegner says:

    oops, not “increase slot size” but “increase failover capacity”.

  3. NiTRo says:

    So the best case Is when no vm in the cluster has reservation ?

  4. Duncan says:

    it’s not the best but the least restrictive. the best is when you are using a realistic reservation on at least one machine so that the slots are correctly sized.

  5. Suttoi says:

    If you pool servers by service / application and give them no direct reservation, but instead make a reservation at the resource pool level, will this avoid admission control problems?

  6. michael says:

    5. Suttoi said, August 17th, 2009 at 08:12 If you pool servers by service / application and give them no direct reservation, but instead make a reservation at the resource pool level, will this avoid admission control problems?

    can someone answer the question?

  7. Yes it will avoid these issues.

  8. michael says:

    so reservations at resource pool level do not affect failover capacity?

  9. michael says:

    thanks, Duncan

Leave a Reply

Subscribe to RSS Feed Follow me on Twitter!