Open jakepruitt opened 7 years ago
Any update on this? I'd like to implement SpotSwap in our environment but wary of this issue.
@henryngo001 I haven't dug deeper into this issue - I think this was a rare condition though, spotswap works on a regular basis very well for us.
@jakepruitt Thanks for the quick update.
On 10/2 at 18:43:00, one of our EC2-based saw a priceout of the last AZ available to us in the region for that instance type, which took out all 9 of our spot instances, leaving us with 0 instances running in the service. That state of 0 running instances lasted about 7 minutes before the spot market briefly returned to normal. The only scale up we saw for the on-demand group was 10 minutes after the total priceout.
Looking in the logs of the spotswap lambda function, I found the logs that were closest to the priceout:
Strangely, the
No-op on stack during CloudFormation update
appeared when there was no cloudformation update in progress. Then, in the second message, it showsNo instances listed
, which seems to then no-op the function when it should have taken the lack of instances as an indication that the on-demand group should scale up.Two questions:
cc/ @arunasank @emilymcafee