Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. Options for instance behavior when the host machine undergoes maintenance that may temporarily impact instance performance.
JSON representation |
---|
{ "onHostMaintenance": enum ( |
Fields | |
---|---|
onHostMaintenance |
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance. |
restartType |
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to |
nodeAffinities[] |
A set of node affinity and anti-affinity configurations for sole tenant nodes. |
minNodeCpus |
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 ( |
Fields | |
---|---|
key |
The label key of Node resource to reference. |
operator |
The operator to use for the node resources specified in the |
values[] |
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. |