-
-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RunInstances API call, attempt multiple instance types #263
Comments
This is a great proposal, thanks! |
I'm thinking to just iterate over the list of compatible/allowed instance types ordered increasingly by price and launch them one by one until we get one that can be launched successfully. We'd only skip the run if all of them failed. |
Hi @cristim First of all congrats on this wonderful tool. Just wanted to know about this particular issue, anytime soon can we expect a fix. As you mentioned just make Autospotting to iterate over all instance type mentioned in allowed_instance_types list. This will be a lifesaver. Thanks! |
Fixed in #306 |
Issue type
Summary
When using the new RunInstances API call (https://github.com/cristim/autospotting/pull/257) and there is high demand on the instance type AWS responds with
InsufficientInstanceCapacity
Which Autospotting returns
It would be nice if Autospotting went back to
getCheapestCompatibleSpotInstanceType
with the failed instance type appended todisallowedList
and attempted to bid for the next cheapest instance.I would limit this action to 3 attempts.
The text was updated successfully, but these errors were encountered: