as — Auto Scaling
as · type
SpotMixedAllocationPolicy
4 fields
| Field | Type | Description |
|---|---|---|
| BaseCapacity | integer | The minimum number of the scaling group’s capacity that must be fulfilled by pay-as-you-go instances. It defaults to 0 if not specified. Its value cannot exceed the max capacity of the scaling group. |
| OnDemandPercentageAboveBaseCapacity | integer | Controls the percentage of pay-as-you-go instances for the additional capacity beyond `BaseCapacity`. Valid range: 0-100. The value 0 indicates that only spot instances are provisioned, while the value 100 indicates that only pay-as-you-go instances are provisioned. It defaults to 70 if not specified. The number of pay-as-you-go instances calculated on the percentage should be rounded up. |
| SpotAllocationStrategy | string | Specifies how to assign spot instances in a mixed instance mode. Valid values: `COST_OPTIMIZED` and `CAPACITY_OPTIMIZED`; default value: `COST_OPTIMIZED`. |
| CompensateWithBaseInstance | boolean | Whether to replace with pay-as-you go instances. Valid values: |
