SchedulingArgs

data class SchedulingArgs(val automaticRestart: Output<Boolean>? = null, val availabilityDomain: Output<Int>? = null, val currentCpus: Output<Int>? = null, val currentMemoryMb: Output<String>? = null, val hostErrorTimeoutSeconds: Output<Int>? = null, val instanceTerminationAction: Output<SchedulingInstanceTerminationAction>? = null, val latencyTolerant: Output<Boolean>? = null, val localSsdRecoveryTimeout: Output<DurationArgs>? = null, val locationHint: Output<String>? = null, val maintenanceFreezeDurationHours: Output<Int>? = null, val maintenanceInterval: Output<SchedulingMaintenanceInterval>? = null, val maxRunDuration: Output<DurationArgs>? = null, val minNodeCpus: Output<Int>? = null, val nodeAffinities: Output<List<SchedulingNodeAffinityArgs>>? = null, val onHostMaintenance: Output<SchedulingOnHostMaintenance>? = null, val preemptible: Output<Boolean>? = null, val provisioningModel: Output<SchedulingProvisioningModel>? = null, val terminationTime: Output<String>? = null) : ConvertibleToJava<SchedulingArgs>

Sets the scheduling options for an Instance.

Constructors

Link copied to clipboard
fun SchedulingArgs(automaticRestart: Output<Boolean>? = null, availabilityDomain: Output<Int>? = null, currentCpus: Output<Int>? = null, currentMemoryMb: Output<String>? = null, hostErrorTimeoutSeconds: Output<Int>? = null, instanceTerminationAction: Output<SchedulingInstanceTerminationAction>? = null, latencyTolerant: Output<Boolean>? = null, localSsdRecoveryTimeout: Output<DurationArgs>? = null, locationHint: Output<String>? = null, maintenanceFreezeDurationHours: Output<Int>? = null, maintenanceInterval: Output<SchedulingMaintenanceInterval>? = null, maxRunDuration: Output<DurationArgs>? = null, minNodeCpus: Output<Int>? = null, nodeAffinities: Output<List<SchedulingNodeAffinityArgs>>? = null, onHostMaintenance: Output<SchedulingOnHostMaintenance>? = null, preemptible: Output<Boolean>? = null, provisioningModel: Output<SchedulingProvisioningModel>? = null, terminationTime: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val automaticRestart: Output<Boolean>? = null

Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.

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

Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details.

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

Current number of vCPUs available for VM. 0 or unset means default vCPUs of the current machine type.

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

Current amount of memory (in MB) available for VM. 0 or unset means default amount of memory of the current machine type.

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

Specify the time in seconds for host error detection, the value must be within the range of 90, 330 with the increment of 30, if unset, the default behavior of host error recovery will be used.

Link copied to clipboard

Specifies the termination action for the instance.

Link copied to clipboard
val latencyTolerant: Output<Boolean>? = null

Defines whether the instance is tolerant of higher cpu latency. This can only be set during instance creation, or when the instance is not currently running. It must not be set if the preemptible option is also set.

Link copied to clipboard

Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.

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

An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.

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

Specifies the number of hours after VM instance creation where the VM won't be scheduled for maintenance.

Link copied to clipboard

Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC.

Link copied to clipboard
val maxRunDuration: Output<DurationArgs>? = null

Specifies the max run duration for the given instance. If specified, the instance termination action will be performed at the end of the run duration.

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

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

Link copied to clipboard

A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.

Link copied to clipboard

Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.

Link copied to clipboard
val preemptible: Output<Boolean>? = null

Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a TERMINATED state. See Instance Life Cycle for more information on the possible instance states.

Link copied to clipboard

Specifies the provisioning model of the instance.

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

Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.