I used spot instances for the past month, launching and terminating instances. Currently, I've no instances running on AWS (all spot instance terminated). But when I try to launch a new spot instance, it tells me that "Max spot instance count exceeded".
I've read the documentation on spot instance limits. However, I'm confused to how this limit works. Is it limiting the number of concurrent instances you can run, or the total instances you ever launched?
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-limits.html#spot-limits-general
EC2 InstancesBy default, AWS has a limit of 20 instances per region. This includes all instances set up on your AWS account. To increase EC2 limits, request a higher limit by providing information about the new limit and regions where it should be applied.
Defined duration—you can get a spot instance guaranteed to run for a period of 1-6 hours. The longer the defined duration, the lower the discount provided for the spot instance.
Spot instances are up to 90% cheaper than On-Demand instances, which can significantly reduce your EC2 costs. A Spot Price is the hourly rate for a Spot instance. AWS sets the Spot price for each instance type in each availability zone based on the evolving supply and demand for Spot instances.
A Spot Instance is an instance that uses spare EC2 capacity that is available for less than the On-Demand price. Because Spot Instances enable you to request unused EC2 instances at steep discounts, you can lower your Amazon EC2 costs significantly.
Is it limiting the number of concurrent instances you can run, or the total instances you ever launched?
EC2 Limits are per number of concurrent instances you can launch.
I'd suggest to check your current EC2 limits using the AWS Management Console.
Check your current limits for the instance type(s) you want to use and the limits related to the spot instances.
You may want to check "Spot requests" under EC2 panel. According to the docs:
If you terminate your Spot Instance but do not cancel the request, the request counts against this limit until Amazon EC2 detects the termination and closes the request.
I've found closed requests that didn't cancel automatically, you can cancel them manually to free new requests.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With