ElasticSpotSpec

更新时间:
复制 MD 格式

Parameter

Type

Description

Example

object

Configuration for creating spot instances.

InstanceType

string

The spot instance type.

SpotPriceLimit

number

The maximum hourly price you are willing to pay for a spot instance. If omitted, the on-demand price is the default.

SpotDiscountLimit

number

The maximum discount percentage for the spot instance. The system does not select an instance if its discount exceeds this limit. For example, if you set this parameter to 90, the system considers only instances with a discount of 90% or less.

SpotStrategy

string

The strategy for allocating spot instances. Valid values:
  • LowestPrice: Launches instances from the spot capacity pool offering the lowest price. This is the default strategy.

  • CapacityOptimized: Launches instances from the spot capacity pool offering optimal capacity.