Why am I receiving a "no Spot capacity available" error when trying to launch an Amazon EC2 Spot Instance?
Last updated: 2020-06-23
Why am I receiving the error "There is no Spot capacity available that matches your request" when trying to launch an Amazon Elastic Compute Cloud (Amazon EC2) Spot Instance?
Spot Instances are spare compute capacity in the AWS Cloud. Spot Instance capacity is interrupted when Amazon Elastic Compute Cloud (Amazon EC2) needs the capacity back. The no Spot capacity available error occurs when there isn't enough spare capacity to fulfill your Spot Instance or Spot Fleet request.
As capacity becomes available, Amazon EC2 fulfills requests in the following order:
- Reserved Instances
- On-Demand Instances
- Spot Instances
The Spot request continues to automatically make the launch request until capacity becomes available. When capacity becomes available, Amazon EC2 fulfills the Spot request.
When setting up your Spot Instances, keep the following best practices in mind to help limit capacity issues:
- Use a diverse set of instance types so that you aren't reliant on one, specific type. You can create an Amazon EC2 Auto Scaling group with a mix of On-Demand and Spot Instances so that you aren't completely reliant on capacity availability.
- Use the capacity optimized allocation strategy within your Auto Scaling group. The capacity optimized strategy analyzes real-time capacity data in order to launch your Spot Instances into pools with the most available capacity.
For a complete list of best practices for utilizing Spot Instances successfully, see Best practices for EC2 Spot.