ArmComputeFleetModelFactory.SpotPriorityProfile Method

Definition

public static Azure.ResourceManager.ComputeFleet.Models.SpotPriorityProfile SpotPriorityProfile(int? capacity = default, int? minCapacity = default, float? maxPricePerVm = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetEvictionPolicy? evictionPolicy = default, Azure.ResourceManager.ComputeFleet.Models.SpotAllocationStrategy? allocationStrategy = default, bool? isMaintainEnabled = default);
static member SpotPriorityProfile : Nullable<int> * Nullable<int> * Nullable<single> * Nullable<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetEvictionPolicy> * Nullable<Azure.ResourceManager.ComputeFleet.Models.SpotAllocationStrategy> * Nullable<bool> -> Azure.ResourceManager.ComputeFleet.Models.SpotPriorityProfile
Public Shared Function SpotPriorityProfile (Optional capacity As Nullable(Of Integer) = Nothing, Optional minCapacity As Nullable(Of Integer) = Nothing, Optional maxPricePerVm As Nullable(Of Single) = Nothing, Optional evictionPolicy As Nullable(Of ComputeFleetEvictionPolicy) = Nothing, Optional allocationStrategy As Nullable(Of SpotAllocationStrategy) = Nothing, Optional isMaintainEnabled As Nullable(Of Boolean) = Nothing) As SpotPriorityProfile

Parameters

capacity
Nullable<Int32>

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

minCapacity
Nullable<Int32>

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.

maxPricePerVm
Nullable<Single>

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

evictionPolicy
Nullable<ComputeFleetEvictionPolicy>

Eviction Policy to follow when evicting Spot VMs.

allocationStrategy
Nullable<SpotAllocationStrategy>

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

isMaintainEnabled
Nullable<Boolean>

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.

Returns

A new SpotPriorityProfile instance for mocking.

Applies to