InstanceGroupManagerInstanceLifecyclePolicy

data class InstanceGroupManagerInstanceLifecyclePolicy(val defaultActionOnFailure: String? = null, val forceUpdateOnRepair: String? = null, val onFailedHealthCheck: String? = null)

Constructors

constructor(defaultActionOnFailure: String? = null, forceUpdateOnRepair: String? = null, onFailedHealthCheck: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

, Specifies the action that a MIG performs on a failed VM. If the value of the on_failed_health_check field is DEFAULT_ACTION, then the same action also applies to the VMs on which your application fails a health check. Valid options are: DO_NOTHING, REPAIR. If DO_NOTHING, then MIG does not repair a failed VM. If REPAIR (default), then MIG automatically repairs a failed VM by recreating it. For more information, see about repairing VMs in a MIG.

Link copied to clipboard

, Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are: YES, NO. If YES and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. If NO (default), then updates are applied in accordance with the group's update policy type.

Link copied to clipboard

, Specifies the action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid options are: DEFAULT_ACTION, DO_NOTHING, REPAIR. If DEFAULT_ACTION (default), then MIG uses the same action configured for the default_action_on_failure field. If DO_NOTHING, then MIG does not repair unhealthy VM. If REPAIR, then MIG automatically repairs an unhealthy VM by recreating it. For more information, see about repairing VMs in a MIG.