ComputeScheduling

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

JSON representation
{
  "automaticRestart": boolean,
  "onHostMaintenance": enum (OnHostMaintenance),
  "restartType": enum (RestartType),
  "nodeAffinities": [
    {
      object (SchedulingNodeAffinity)
    }
  ],
  "minNodeCpus": integer
}
Fields
automaticRestart
(deprecated)

boolean

onHostMaintenance

enum (OnHostMaintenance)

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

restartType

enum (RestartType)

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.

nodeAffinities[]

object (SchedulingNodeAffinity)

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

minNodeCpus

integer

The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.

OnHostMaintenance

Enums
ON_HOST_MAINTENANCE_UNSPECIFIED An unknown, unexpected behavior.
TERMINATE Terminate the instance when the host machine undergoes maintenance.
MIGRATE Migrate the instance when the host machine undergoes maintenance.

RestartType

Defines whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).

Enums
RESTART_TYPE_UNSPECIFIED Unspecified behavior. This will use the default.
AUTOMATIC_RESTART The Instance should be automatically restarted whenever it is terminated by Compute Engine.
NO_AUTOMATIC_RESTART The Instance isn't automatically restarted whenever it is terminated by Compute Engine.

SchedulingNodeAffinity

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling

JSON representation
{
  "key": string,
  "operator": enum (Operator),
  "values": [
    string
  ]
}
Fields
key

string

The label key of Node resource to reference.

operator

enum (Operator)

The operator to use for the node resources specified in the values parameter.

values[]

string

Corresponds to the label values of Node resource.

Operator

Possible types of node selection operators. Valid operators are IN for affinity and NOT_IN for anti-affinity.

Enums
OPERATOR_UNSPECIFIED An unknown, unexpected behavior.
IN The node resource group should be in these resources affinity.
NOT_IN The node resource group should not be in these resources affinity.