ComputeSchedulingArgs

data class ComputeSchedulingArgs(val automaticRestart: Output<Boolean>? = null, val minNodeCpus: Output<Int>? = null, val nodeAffinities: Output<List<SchedulingNodeAffinityArgs>>? = null, val onHostMaintenance: Output<ComputeSchedulingOnHostMaintenance>? = null, val restartType: Output<ComputeSchedulingRestartType>? = null) : ConvertibleToJava<ComputeSchedulingArgs>

Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.

Constructors

Link copied to clipboard
fun ComputeSchedulingArgs(automaticRestart: Output<Boolean>? = null, minNodeCpus: Output<Int>? = null, nodeAffinities: Output<List<SchedulingNodeAffinityArgs>>? = null, onHostMaintenance: Output<ComputeSchedulingOnHostMaintenance>? = null, restartType: Output<ComputeSchedulingRestartType>? = null)

Functions

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

Properties

Link copied to clipboard
val automaticRestart: Output<Boolean>? = null
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. Ignored if no node_affinites are configured.

Link copied to clipboard

A set of node affinity and anti-affinity configurations for sole tenant nodes.

Link copied to clipboard

How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.

Link copied to clipboard

Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to automaticRestart field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.