ClusterVmComponentProtectionSettings

ClusterVmComponentProtectionSettings
ClusterVmComponentProtectionSettings

vSphere HA Virtual Machine Component Protection Service settings.

vSphere HA Virtual Machine Component Protection Service detects and reacts to storage failures that do not necessarily cause a virtual machine to go down, but may impact the health or QoS of the virtual machine.

All fields are defined as optional. In case of a reconfiguration, fields left unset are not changed.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "vmStorageProtectionForAPD": "string",
    "enableAPDTimeoutForHosts": false,
    "vmTerminateDelayForAPDSec": 0,
    "vmReactionOnAPDCleared": "string",
    "vmStorageProtectionForPDL": "string"
}
string
vmStorageProtectionForAPD
Optional

VM storage protection setting for storage failures categorized as All Paths Down (APD).

APD is a condition where a storage has become inaccessible for unknown reasons. It only indicates loss of connectivity and does not indicate storage device failure or LUN removal (Permenant Device Loss or PDL). The details of APD and PDL are described in HostMountInfoInaccessibleReasonEnum.

This property is meaningful only when vSphere HA is turned on. Valid values are specified by ClusterVmComponentProtectionSettingsStorageVmReactionEnum. The default value is disabled for cluster setting and clusterDefault for per-VM setting.

When an APD condition happens and the host begins timing out I/Os (@link vim.host.MountInfo.InaccessibleReason#AllPathsDown_Timeout}, VM Component Protection service will react based on the specific value of this property:

  • disabled, no reaction, i.e., no VM failover and no event reporting for the failures.
  • warning, service will issue events, alarms and/or config issues for component failures.
  • restartConservative, service will terminate the impacted VMs after a preconfigured time interval (vmTerminateDelayForAPDSec) if they are to be restarted.
  • restartAggressive, service might terminate the impacted VMs after a preconfigured time interval (vmTerminateDelayForAPDSec). In some cases, a VM is terminated even if it may not able to be restarted or lose Fault Tolerance redundancy.
  • clusterDefault, service will implement cluster default.
boolean
enableAPDTimeoutForHosts
Optional

This property indicates if APD timeout will be enabled for all the hosts in the cluster when vSphere HA is configured.

The details of APD timeout are described in HostMountInfoInaccessibleReasonEnum.

If vmComponentProtecting is disabled, the property will be ignored. Otherwise, for each host in the cluster, APD timeout will be enabled. Note that no change will be made for a host if it already had APD timeout enabled.

This property is meaningful only for cluster setting. It is ignored if specified at VM level. The default value is false if not specified.

Note that this property is not persisted by vSphere backend. It does not impact any cluster reconfiguration or host operation (such as adding a host to a cluster) that might happen later.

integer As int32 As int32
vmTerminateDelayForAPDSec
Optional

The time interval after an APD timeout has been declared and before VM Component Protection service will terminate the VM.

The value only applies if vmStorageProtectionForAPD is set to restartConservative or restartAggressive.

The default value is 180 seconds if not specified. To use cluster setting for a VM override, set to -1 in per-VM setting.

string
vmReactionOnAPDCleared
Optional

Action taken by VM Component Protection service for a powered on VM when APD condition clears after APD timeout.

This property is meaningful only when vSphere HA is turned on. Valid values are specified by ClusterVmComponentProtectionSettingsVmReactionOnAPDClearedEnum. The default value is none for cluster setting and useClusterDefault for per-VM setting.

string
vmStorageProtectionForPDL
Optional

VM storage protection setting for storage failures categorized as Permenant Device Loss (PDL).

PDL indicates storage device failure or LUN removal. In case of PDL, the failed datastore or device is unlikely to recover. The details of PDL are described in HostMountInfoInaccessibleReasonEnum.

This property is meaningful only when vSphere HA is turned on. Valid values are disabled, warning, restartAggressive and clusterDefault. The default value is disabled for cluster setting and clusterDefault for per-VM setting.

When set to restartAggressive, VM Component Protection service will immediately terminate the VMs impacted by PDL and will attempt to restart the VMs with best effort. When set to the other values, the behavior is the same as described for vmStorageProtectionForAPD.