So that VMware vSphere HA can smoothly restart VMs on a host that fails thanks to other hosts in the cluster, VMware vSphere HA uses admission control.
Admission control allows you to impose constraints on resource usage to ensure that virtual machines can always be restarted using other hosts in the cluster.
Actions likely to violate these constraints are therefore not authorized.
For example :
Indeed, admission control works with a slot system which will be calculated based on the CPU and RAM resource reservations of your VMs, as well as the resources available on the hosts in your cluster.
Note that if no memory reservation is defined on your virtual machines, vSphere HA will default to "0 MB" for RAM and "32 MHz" for CPU.
Note that this admission control can be disabled. Although this is not recommended, because VMware vSphere HA will no longer be able to guarantee that your VMs can be restarted on the other hosts in your cluster in the event of a problem.
In the example below, if host 1 fails, the virtual machines (which here consume 80% of this host's resources) will not be able to be restarted on host 2 (which in this example is also used at 80% of its capacity).
However, with admission control, a situation like above cannot happen.
Additionally, the more hosts you have in a cluster, the more available (free) resources you have on your different hosts to be able to restart the machines of a host that goes down (just in case).
Although it is also not recommended to use a host at 100% of its capacity to avoid memory recovery mechanisms (TPS, ballooning, compression, ...): How memory (RAM) management works on VMware ESXi 6.7.
In the example below, if host 1 goes down, vSphere HA will be able to restart its virtual machines without any problem thanks to the other hosts in the cluster, given that there are enough available (free) resources on these hosts .
Source : vSphere HA Admission Control - VMware Docs.
By default, admission control is based on the number of failed hosts the cluster can tolerate while still ensuring failover is possible.
However, you can choose between 3 types of admission control:
When you choose the "Cluster Resource Percentage" admission control type, VMware vSphere HA verifies that the percentage of resources (CPU + RAM) is reserved for failover.
In the example below (from VMware documentation):
The capacity for the processor (CPU) is therefore 70% ((24 GHz - 7 GHz) / 24 GHz).
The RAM capacity is therefore 71% ((21 GB - 6 GB) / 21 GB).
If you set a failover resource percentage of 25%, this leaves 45% CPU resources and 46% memory (RAM) resources available for additional virtual machines.
Source : Cluster Resources Percentage Admission Control - VMware Docs.
When you choose the "Slot Policy" admission control type, VMware vSphere HA ensures that there are always sufficient resources in your cluster to restart all VMs from hosts that have failed.
To do this, vSphere HA will use a slot system.
A slot corresponds to the CPU and RAM resources that each powered-on VM in your cluster should be able to use on another host in the cluster, in the event that the source one fails.
Once the slot size has been calculated by vSphere HA, admission control will be able to calculate how many virtual machines it can restart without problem thanks to the other hosts in the event of a host failure.
Important : the size of a slot is calculated:
Once the slot size is calculated, vSphere HA will determine failover capacity by calculating how many slots are available on each host for virtual machines.
This way, vSphere HA will know how many virtual machines can be restarted on the other working hosts in the cluster in the event that one host fails.
Note that only connected hosts that are not under maintenance are considered.
In the example below (from VMware documentation):
Source : Slot Policy Admission Control - VMware Docs.
When you choose the "Dedicated Failover Hosts" admission control type, VMware vSphere HA will maintain one or more specific hosts as failover hosts.
That is, these hosts will only be used when another host goes down.
This allows you to save energy by avoiding running all the hosts simultaneously if you can consolidate your hosts as best as possible.
When you define hosts as failover hosts, they are prioritized when a host goes down and its virtual machines in your cluster need to be restarted.
However, if these failover hosts are down or their resources are not sufficient to restart the virtual machines of the failed host, then other hosts in the cluster will be used.
Note that you cannot power on or migrate to virtual machines.
Otherwise, the capacities will not be available.
Also note that DRS does not use failover hosts to balance the load nor does it follow VM-VM affinity rules on them.
Source : Dedicated Failover Hosts Admission Control - VMware Docs.
To choose which admission control policy vSphere HA should use, select your cluster and go to: Configure -> Services -> vSphere Availability.
Then click: Edit.
Note that vSphere HA obviously needs to be enabled.
In the "Admission Control" tab, start by selecting "Define host failover capacity by: Cluster resources Percentage."
Then, you can configure the admission control settings related to this policy:
Sources :
When admission control is configured to use the "Cluster Resource Percentage" policy, you will see the resources reserved for failover in the "vSphere HA" section of your VMware cluster:
If you go to "Monitor -> vSphere HA -> Summary", you will see an "Advanced Runtime info" section with these informations:
VMware 6/13/2024
VMware 12/4/2024
VMware 3/27/2024
VMware 8/23/2024
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment