Show / Hide Table of Contents

Class SpotAllocationStrategy

Indicates how to allocate instance types to fulfill Spot capacity.

Inheritance
System.Object
SpotAllocationStrategy
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.AWS.AutoScaling.dll
Syntax (csharp)
public sealed class SpotAllocationStrategy : Enum
Syntax (vb)
Public NotInheritable Class SpotAllocationStrategy
    Inherits

     Enum

Synopsis

Fields

CAPACITY_OPTIMIZED

The Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity.

CAPACITY_OPTIMIZED_PRIORITIZED

When you use this strategy, you need to set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list).

LOWEST_PRICE

The Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify.

value__

Fields

CAPACITY_OPTIMIZED

The Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity.

public const SpotAllocationStrategy CAPACITY_OPTIMIZED
Field Value
Type Description
SpotAllocationStrategy
Remarks

Recommended.

CAPACITY_OPTIMIZED_PRIORITIZED

When you use this strategy, you need to set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list).

public const SpotAllocationStrategy CAPACITY_OPTIMIZED_PRIORITIZED
Field Value
Type Description
SpotAllocationStrategy
Remarks

Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

LOWEST_PRICE

The Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify.

public const SpotAllocationStrategy LOWEST_PRICE
Field Value
Type Description
SpotAllocationStrategy

value__

public int value__
Field Value
Type Description
System.Int32
Back to top Generated by DocFX