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."],[[["This documentation covers the `AllocationPolicy.Types.PlacementPolicy` class within the Batch v1 API, providing reference information and code samples for developers."],["The `PlacementPolicy` class is designed to define the group placement policy for virtual machines (VMs) managed by an `AllocationPolicy`."],["It includes details about inheritance, implementing interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, alongside a listing of inherited members and constructors."],["The documentation outlines the `Collocation` property, which determines whether VMs should be located close together for reduced network latency, as well as the `MaxDistance` property for restricting the maximum logical switch distance between VMs."],["Multiple versions of the documentation are available, ranging from version 1.0.0 to the latest version 2.13.0, to see the changes between each build of the documentation."]]],[]]