Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Spot Instance Limit

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

like image 314
calclavia Avatar asked Apr 04 '17 20:04

calclavia


People also ask

Is there a limit on EC2 instances?

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.

How long does a spot instance last?

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.

Can Spot instance cost more than on-Demand?

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.

What is a AWS spot instance?

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.


2 Answers

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.

  • Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
  • From the navigation bar, select a region (e.g. US East (Ohio).
  • From the navigation pane, choose Limits.

Check your current limits for the instance type(s) you want to use and the limits related to the spot instances.

like image 94
Antonio Avatar answered Sep 25 '22 19:09

Antonio


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.

like image 36
Gabriel Avatar answered Sep 23 '22 19:09

Gabriel