Posted On: Nov 4, 2020
Starting today, you can proactively rebalance your workloads running on EC2 Spot Instances without having to wait until the Spot Instance receives a two minute Instance interruption notice. You now have access to a new feature called “EC2 Instance rebalance recommendation”, a signal that notifies you when a Spot Instance is at elevated risk of interruption. The signal can arrive sooner than the two minute Spot Instance interruption notice, giving you the opportunity to proactively rebalance your workload to new or existing Spot Instances that are not at elevated risk of interruption. For example, you can start checkpointing your work early to save as much state as possible before the instance is interrupted. Or you can prevent scheduling new work onto the Spot Instances that received the rebalance recommendation, thus increasing the chance of completing the work.
You can access the EC2 Instance rebalance recommendation signal on a running Spot Instance using the instance metadata service or using Amazon EventBridge notifications. To learn more about EC2 Instance rebalance recommendations, please visit this page.
We simplified consuming this new signal by adding a new feature called Capacity Rebalancing to Amazon EC2 Auto Scaling, EC2 Fleet, and Spot Fleet to make it easier for you to manage your workloads backed by Spot Instances. For more information, see Amazon EC2 Auto Scaling Capacity Rebalancing in the Amazon EC2 Auto Scaling User Guide, and Capacity Rebalancing for EC2 Fleet and Capacity Rebalancing for Spot Fleet.