VM Migration v1 API - Class ComputeScheduling (2.3.0)

public sealed class ComputeScheduling : IMessage<ComputeScheduling>, IEquatable<ComputeScheduling>, IDeepCloneable<ComputeScheduling>, IBufferMessage, IMessage

Reference documentation and code samples for the VM Migration v1 API class ComputeScheduling.

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

Inheritance

Object > ComputeScheduling

Namespace

Google.Cloud.VMMigration.V1

Assembly

Google.Cloud.VMMigration.V1.dll

Constructors

ComputeScheduling()

public ComputeScheduling()

ComputeScheduling(ComputeScheduling)

public ComputeScheduling(ComputeScheduling other)
Parameter
NameDescription
otherComputeScheduling

Properties

MinNodeCpus

public int MinNodeCpus { get; set; }

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

Property Value
TypeDescription
Int32

NodeAffinities

public RepeatedField<SchedulingNodeAffinity> NodeAffinities { get; }

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

Property Value
TypeDescription
RepeatedField<SchedulingNodeAffinity>

OnHostMaintenance

public ComputeScheduling.Types.OnHostMaintenance OnHostMaintenance { get; set; }

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

Property Value
TypeDescription
ComputeScheduling.Types.OnHostMaintenance

RestartType

public ComputeScheduling.Types.RestartType RestartType { get; set; }

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.

Property Value
TypeDescription
ComputeScheduling.Types.RestartType