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 v1 API class AllocationPolicy.Types.PlacementPolicy.
PlacementPolicy describes a group placement policy for the VMs controlled
by this AllocationPolicy.
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.
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
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `AllocationPolicy.Types.PlacementPolicy` class in the Batch v1 API manages group placement policies for virtual machines (VMs), offering control over VM proximity."],["The latest version of the Batch API documentation for `AllocationPolicy.Types.PlacementPolicy` is 2.13.0, and the page lists documentation for versions from 1.0.0 up to the latest."],["The `PlacementPolicy` class implements interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, along with inheriting members from the base `object` class."],["Key properties of `PlacementPolicy` include `Collocation`, which determines VM proximity preferences (UNSPECIFIED or COLLOCATED), and `MaxDistance`, intended to set a maximum distance between VMs (though not yet implemented)."],["Two constructors are available, a default `PlacementPolicy()` constructor and one which receives another instance of `AllocationPolicy.Types.PlacementPolicy` as input, `PlacementPolicy(PlacementPolicy)`."]]],[]]