Class ComputeScheduling (1.5.1)

ComputeScheduling(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
on_host_maintenance google.cloud.vmmigration_v1.types.ComputeScheduling.OnHostMaintenance
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
restart_type google.cloud.vmmigration_v1.types.ComputeScheduling.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.
node_affinities MutableSequence[google.cloud.vmmigration_v1.types.SchedulingNodeAffinity]
A set of node affinity and anti-affinity configurations for sole tenant nodes.
min_node_cpus int
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.

Classes

OnHostMaintenance

OnHostMaintenance(value)

Values: ON_HOST_MAINTENANCE_UNSPECIFIED (0): An unknown, unexpected behavior. TERMINATE (1): Terminate the instance when the host machine undergoes maintenance. MIGRATE (2): Migrate the instance when the host machine undergoes maintenance.

RestartType

RestartType(value)

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

Values: RESTART_TYPE_UNSPECIFIED (0): Unspecified behavior. This will use the default. AUTOMATIC_RESTART (1): The Instance should be automatically restarted whenever it is terminated by Compute Engine. NO_AUTOMATIC_RESTART (2): The Instance isn't automatically restarted whenever it is terminated by Compute Engine.