🟡

Amazon EC2 – Spot Fleets

A Spot Fleet is a collection of Spot Instances (optionally mixed with On-Demand Instances) managed as a single group to meet a target capacity under defined price constraints.
How it works:
  • Define multiple launch pools: instance types, OS, AZs.
  • Fleet chooses pools based on allocation strategy.
  • Stops launching when reaching target capacity or max total cost.
Allocation strategies:
  • lowestPrice: Selects pool with the lowest price – cost-optimized, short workloads.
  • diversified: Spreads across pools – high availability, long workloads.
  • capacityOptimized: Chooses pool with best capacity availability.
  • priceCapacityOptimized (recommended): Picks pools with highest capacity, then lowest price – balances cost and availability.
Key benefit: Automates Spot Instance requests to minimize cost while meeting capacity needs.