InstanceScheduling

data class InstanceScheduling(val automaticRestart: Boolean? = null, val instanceTerminationAction: String? = null, val localSsdRecoveryTimeout: InstanceSchedulingLocalSsdRecoveryTimeout? = null, val maintenanceInterval: String? = null, val maxRunDuration: InstanceSchedulingMaxRunDuration? = null, val minNodeCpus: Int? = null, val nodeAffinities: List<InstanceSchedulingNodeAffinity>? = null, val onHostMaintenance: String? = null, val preemptible: Boolean? = null, val provisioningModel: String? = null)

Constructors

Link copied to clipboard
constructor(automaticRestart: Boolean? = null, instanceTerminationAction: String? = null, localSsdRecoveryTimeout: InstanceSchedulingLocalSsdRecoveryTimeout? = null, maintenanceInterval: String? = null, maxRunDuration: InstanceSchedulingMaxRunDuration? = null, minNodeCpus: Int? = null, nodeAffinities: List<InstanceSchedulingNodeAffinity>? = null, onHostMaintenance: String? = null, preemptible: Boolean? = null, provisioningModel: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user). Defaults to true.

Link copied to clipboard

Describe the type of termination action for VM. Can be STOP or DELETE. Read more on here

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val minNodeCpus: Int? = null

The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

Link copied to clipboard

Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.

Link copied to clipboard

Describes maintenance behavior for the instance. Can be MIGRATE or TERMINATE, for more info, read here.

Link copied to clipboard
val preemptible: Boolean? = null

Specifies if the instance is preemptible. If this field is set to true, then automatic_restart must be set to false. Defaults to false.

Link copied to clipboard

Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here