PlacementPolicyArgs

data class PlacementPolicyArgs(val collocation: Output<String>? = null, val maxDistance: Output<String>? = null) : ConvertibleToJava<PlacementPolicyArgs>

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

Constructors

Link copied to clipboard
fun PlacementPolicyArgs(collocation: Output<String>? = null, maxDistance: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): PlacementPolicyArgs

Properties

Link copied to clipboard
val collocation: Output<String>? = null

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.

Link copied to clipboard
val maxDistance: Output<String>? = null

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