SpotPriorityProfileArgs

data class SpotPriorityProfileArgs(val allocationStrategy: Output<Either<String, SpotAllocationStrategy>>? = null, val capacity: Output<Int>? = null, val evictionPolicy: Output<Either<String, EvictionPolicy>>? = null, val maintain: Output<Boolean>? = null, val maxPricePerVM: Output<Double>? = null, val minCapacity: Output<Int>? = null) : ConvertibleToJava<SpotPriorityProfileArgs>

Configuration Options for Spot instances in Compute Fleet.

Constructors

Link copied to clipboard
constructor(allocationStrategy: Output<Either<String, SpotAllocationStrategy>>? = null, capacity: Output<Int>? = null, evictionPolicy: Output<Either<String, EvictionPolicy>>? = null, maintain: Output<Boolean>? = null, maxPricePerVM: Output<Double>? = null, minCapacity: Output<Int>? = null)

Properties

Link copied to clipboard
val allocationStrategy: Output<Either<String, SpotAllocationStrategy>>? = null

Allocation strategy to follow when determining the VM sizes distribution for Spot VMs.

Link copied to clipboard
val capacity: Output<Int>? = null

Total capacity to achieve. It is currently in terms of number of VMs.

Link copied to clipboard
val evictionPolicy: Output<Either<String, EvictionPolicy>>? = null

Eviction Policy to follow when evicting Spot VMs.

Link copied to clipboard
val maintain: Output<Boolean>? = null

Flag to enable/disable continuous goal seeking for the desired capacity and restoration of evicted Spot VMs. If maintain is enabled, AzureFleetRP will use all VM sizes in vmSizesProfile to create new VMs (if VMs are evicted deleted) or update existing VMs with new VM sizes (if VMs are evicted deallocated or failed to allocate due to capacity constraint) in order to achieve the desired capacity. Maintain is enabled by default.

Link copied to clipboard
val maxPricePerVM: Output<Double>? = null

Price per hour of each Spot VM will never exceed this.

Link copied to clipboard
val minCapacity: Output<Int>? = null

Minimum capacity to achieve which cannot be updated. If we will not be able to "guarantee" minimum capacity, we will reject the request in the sync path itself.

Functions

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