Partager via


SpotPriorityProfile Class

Definition

Configuration Options for Spot instances in Compute Fleet.

public class SpotPriorityProfile : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ComputeFleet.Models.SpotPriorityProfile>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ComputeFleet.Models.SpotPriorityProfile>
type SpotPriorityProfile = class
    interface IJsonModel<SpotPriorityProfile>
    interface IPersistableModel<SpotPriorityProfile>
Public Class SpotPriorityProfile
Implements IJsonModel(Of SpotPriorityProfile), IPersistableModel(Of SpotPriorityProfile)
Inheritance
SpotPriorityProfile
Implements

Constructors

SpotPriorityProfile()

Initializes a new instance of SpotPriorityProfile.

Properties

AllocationStrategy

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

Capacity

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

EvictionPolicy

Eviction Policy to follow when evicting Spot VMs.

IsMaintainEnabled

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.

MaxPricePerVm

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

MinCapacity

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.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<SpotPriorityProfile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<SpotPriorityProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SpotPriorityProfile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SpotPriorityProfile>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<SpotPriorityProfile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to