AWS Auto Scaling group - price-capacity-optimized for spot instances - replacement process

0

Hello,

Let's suppose we have Auto Scaling groups that has 2 desired capacity and configured to launch them as spot instances with price-capacity-optimized strategy

We configured the ASG to launch two different instance types: t3.medium, t3.large

At first run, the running spot instacnes are as the following depending on the allocation strategy: 2 with t3.medium

Now let's suppose that, the other instance type t3.large got better allocation strategy (price-capacity-optimized),

Will the ASG switch the running spot instances from t3.medium to be t3.large?

Could you please advise?

Thanks

Maan
asked a year ago565 views
1 Answer
2
Accepted Answer

Hello

AutoScaling will not rebalance existing instances based on changes to the allocation strategy. Additionally, its impossible to change the instance type of a running EC2 instance (inside of AutoScaling or not).

You can enable Capacity Rebalancing on the group, and AutoScaling will try to proactively replace instances which are going to be terminated by spot soon, but this isn't constantly monitoring price/capacity, it only happens when Spot sends a notification to AutoScaling.

AWS
answered a year ago
profile picture
EXPERT
reviewed 6 months ago

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.

Guidelines for Answering Questions