Rancher2 aws spot instances - MaxSpotInstanceCountExceeded

Hi all,

This is probably just me not getting it.

I’m dipping my toes into R2 and have a non-spot setup working just fine.

However when I go for the spot setup I end up with:
Error creating machine: Error in driver during machine creation: Error request spot instance: MaxSpotInstanceCountExceeded: Max spot instance count exceeded

Here is where I lack some documentation which leads to questions.

  1. Rancher knows how to do spot instances and the problem is with my account?
  2. I’m expected to provision my own Spot Request set up in EC2 and point Rancher to it?

Any pointers would be appreciated.


Spot instances have a separate set of resource limits in AWS; You’re hitting the limit (of possibly 0 for the requested instance type?) and that error is coming back from their API when Rancher/docker-machine attempts to create an instance and you need to ask them for more. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-limits.html

Thanks. I didn’t read the fine print that I needed to reach out to support. I now am able to create spot instances.