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
posta un anno fa585 visualizzazioni
1 Risposta
2
Risposta accettata

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
con risposta un anno fa
profile picture
ESPERTO
verificato 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande