Skip to content

Fault injection simulates spot interruption; any way to simulate spot rebalance message

0

I'm working on something where I want to make sure I have an instance active all of the time using an auto scaling group with all spot instances. In theory it's configured with CapacityRebalance set to true, so that should allow a new instance to get created before the old ones terminates ( within the 2 minute window ). But ideally it would be great to test it. I think the Fault Injector just simulates a termination signal not the earlier rebalance signal. Is there anyway to test the rebalance signal ( short of creating the spot request to be likely to fail )

1 Answer
1
Accepted Answer
EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
  • I had seen that, but it didn't seem to be working. From the Spot Request page there is a Action that you can take called Initiate interruption which seemed like it should work, but I wasn't getting the rebalance event. I think it might be cause it's hardcoded to 2 minutes in the Action ( which honestly makes sense and probably should work ) but the link above says it needs to be set to OVER 2 minutes. That honestly seems like a bug, since there doesn't seem to be much use to setting the value to 2 minutes. If the action option was set to 3 minutes I would have saved a number of hours : ) But I'm going to mark this as the answer since it has my comment. Thanks.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.