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
gefragt vor einem Jahr585 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen