Friday, March 8, 2024

Cluster HA Admission Control

HA Admission control Definition 

vSphere HA uses admission control to ensure that sufficient resources are reserved for virtual machine recovery when a host fails.

Admission control imposes constraints on resource usage. Any action that might violate these constraints is not permitted. Actions that might be disallowed include the following examples:

a)     Powering on a virtual machine

b)     Migrating a virtual machine

c)     Increasing the CPU or memory reservation of a virtual machine

HA Admission control Types

The basis for vSphere HA admission control is how many host failures your cluster is allowed to tolerate and still guarantee failover. The host failover capacity can be set in three ways:

a)     Cluster resource percentage

b)     Slot policy

c)     Dedicated failover hosts

 Cluster resource percentage:

You can configure vSphere HA to perform admission control by reserving a specific percentage of cluster CPU and memory resources for recovery from host failures.

Select the Percentage of Cluster Resources Reserved admission control policy. This policy offers the most flexibility in terms of host and virtual machine sizing. When configuring this policy, choose a percentage for CPU and memory that reflects the number of host failures you want to support. For example, if you want vSphere HA to set aside resources for two host failures and have ten hosts of equal capacity in the cluster, then specify 20% (2/10). 

Connect via vSphere web client > Home > Hosts and clusters > Select your Cluster object > Configure > vSphere Availability > Admission Control > Click the Edit button.

Under Define host failover capacity > Select Cluster resource percentage > Click check box “Override calculated failover capacity” > Click OK 

This is the best practice we are using in our environment. The Cluster failover reservation percentage can be found under this network drive for all the clusters.

Slot policy

In this case, the default is to “cover all powered-on VMs” and basically, it calculates the slot size based on the maximum CPU/Memory reservation and overhead of all powered-on VMs.

You can also change to the second radio button and use a fixed slot size. In this case, the default what vSphere is proposing (but you can override) is:

When you click the Calculate button, you can then click the View link, which opens a pop-up window showing which VMs are not “guaranteed to have unfragmented failover capacity”

Dedicated failover hosts

This option, where you basically dedicate one of your hosts to be reserved for failover, is very little used. VMware, however, still provides this option. It is not very effective as the host cannot run any VMs (normally), and just wait for failover to happen.

When failover occurs, the VMs which were running on the failed host, are restarted on this dedicated host.

Limitations:

1) No VMs can be started on this host

2) DRS cannot use this host for rebalancing operations

3) No vMotions to this host

 

Can I disable VMware vSphere HA admission control?

Yes, you can. However, without it, you have no assurance that your VMs which lives within your cluster, can be restarted after a hardware failure. VMware does not recommend to permanently disable admission control.

Admission control is a very useful function to protect your workloads. Without proper understanding, or even disabling admission control your VMs might not restart at all when a failure occurs. By assuring that there are enough resources within your cluster, depending on how many hosts and resources is present, admission control regulates the resources to make sure that there is enough resources available for restarting all VMs.

By assuring that there are enough resources within your cluster, depending on how many hosts and resources is present, admission control regulates the resources to make sure that there is enough resources available for restarting all VMs.

No comments:

Post a Comment