Batch v1alpha API - Class AllocationPolicy.Types.PlacementPolicy (1.0.0-alpha29)

public sealed class AllocationPolicy.Types.PlacementPolicy : IMessage<AllocationPolicy.Types.PlacementPolicy>, IEquatable<AllocationPolicy.Types.PlacementPolicy>, IDeepCloneable<AllocationPolicy.Types.PlacementPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1alpha API class AllocationPolicy.Types.PlacementPolicy.

PlacementPolicy describes a group placement policy for the VMs controlled by this AllocationPolicy.

Inheritance

object > AllocationPolicy.Types.PlacementPolicy

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.dll

Constructors

PlacementPolicy()

public PlacementPolicy()

PlacementPolicy(PlacementPolicy)

public PlacementPolicy(AllocationPolicy.Types.PlacementPolicy other)
Parameter
Name Description
other AllocationPolicyTypesPlacementPolicy

Properties

Collocation

public string Collocation { get; set; }

UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.

Property Value
Type Description
string

MaxDistance

public long MaxDistance { get; set; }

When specified, causes the job to fail if more than max_distance logical switches are required between VMs. Batch uses the most compact possible placement of VMs even when max_distance is not specified. An explicit max_distance makes that level of compactness a strict requirement. Not yet implemented

Property Value
Type Description
long