How to terminate persistant spot 请求?

AWS学习笔记3 -- Spot Instance, Spot fleets _Spot instance

Spot Fleets

  • Spot instances + (optional) On-Demand Instances
  • 在价格约束下满足目标产能 meet the target capacity with  price constraints
  • 定义possible launch pools: instance type (m5.large), OS, AZ
  • 可以有多个launch pools, 供fleet选择
  • 当满足产能,或达到最高费用时停止launch instances
  • Strategies to allocate spot instances:
  • 最低价格 lowest price:from the pool with the lowest price (cost optimization, short workload)
  • 多元化 diversified: distributed across all pools (great for availability, long workloads)
  • 容量优化 capacity optimized: pool with the optimal capacity for the numer of instances


Spot Fleets allow us to automatically request Spot Instances with the lowest price

Sport Fleets 允许我们以最低价格自动请求Spot 实例

"LaunchTemplateConfigs": [
{
"LaunchTemplateSpecification": {
"LaunchTemplateId": "lt-0e8c754339b27161c",
"Version": "1"
}
"Overrides": [
{
"InstanceType": "m4.16xlarge",
"WeightedCapacity": 64,
},
{
"InstanceType": "m5.24xlarge",
"WeightedCapacity": 96,
},
]
}
],
"TargetCapacitySpecification": {
"TotalTargetCapacity": 2880,
"OnDemandTargetCapacity": 960,
"SpotTargetCapacity": 1920,
"DefaultTargetCapacityType": "Spot"
}
}

AWS学习笔记3 -- Spot Instance, Spot fleets _Spot instance_02