InstanceGroupManagerAutoHealingPolicyArgs

data class InstanceGroupManagerAutoHealingPolicyArgs(val autoHealingTriggers: Output<InstanceGroupManagerAutoHealingPolicyAutoHealingTriggersArgs>? = null, val healthCheck: Output<String>? = null, val initialDelaySec: Output<Int>? = null, val maxUnavailable: Output<FixedOrPercentArgs>? = null) : ConvertibleToJava<InstanceGroupManagerAutoHealingPolicyArgs>

Constructors

fun InstanceGroupManagerAutoHealingPolicyArgs(autoHealingTriggers: Output<InstanceGroupManagerAutoHealingPolicyAutoHealingTriggersArgs>? = null, healthCheck: Output<String>? = null, initialDelaySec: Output<Int>? = null, maxUnavailable: Output<FixedOrPercentArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): InstanceGroupManagerAutoHealingPolicyArgs

Properties

Link copied to clipboard

Restricts what triggers autohealing.

Link copied to clipboard
val healthCheck: Output<String>? = null

The URL for the health check that signals autohealing.

Link copied to clipboard
val initialDelaySec: Output<Int>? = null

The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range 0, 3600.

Link copied to clipboard
val maxUnavailable: Output<FixedOrPercentArgs>? = null

Maximum number of instances that can be unavailable when autohealing. When 'percent' is used, the value is rounded if necessary. The instance is considered available if all of the following conditions are satisfied: 1. Instance's status is RUNNING. 2. Instance's currentAction is NONE (in particular its liveness health check result was observed to be HEALTHY at least once as it passed VERIFYING). 3. There is no outgoing action on an instance triggered by IGM. By default, number of concurrently autohealed instances is smaller than the managed instance group target size. However, if a zonal managed instance group has only one instance, or a regional managed instance group has only one instance per zone, autohealing will recreate these instances when they become unhealthy.