aws-cdk-lib.aws_autoscaling.SpotAllocationStrategy

enum SpotAllocationStrategy

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.SpotAllocationStrategy
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#SpotAllocationStrategy
Javasoftware.amazon.awscdk.services.autoscaling.SpotAllocationStrategy
Pythonaws_cdk.aws_autoscaling.SpotAllocationStrategy
TypeScript (source)aws-cdk-lib » aws_autoscaling » SpotAllocationStrategy

Indicates how to allocate instance types to fulfill Spot capacity.

Members

NameDescription
LOWEST_PRICEThe 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.
CAPACITY_OPTIMIZEDThe Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity.
CAPACITY_OPTIMIZED_PRIORITIZEDWhen 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).
PRICE_CAPACITY_OPTIMIZEDThe price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price.

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.


CAPACITY_OPTIMIZED

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

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).

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


PRICE_CAPACITY_OPTIMIZED

The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price.