Skip to content

Can we turn off AZ rebalancing for an autoscaling group ?

0

We have a usecase not to rebalance instances across AZ's. In ASG, I see capacity rebalance flag - can you confirm if that flag is only applicable for spot instances ?

does turning off capacity rebalance flag to false - stops the rebalance ?

how to turn off AZ rebalance through ASG ? any cli command would be appreciated.

2 Answers
2
Accepted Answer

You will need to look at AZRebalance – Balances the number of EC2 instances in the group evenly across all of the specified Availability Zones when the group becomes unbalanced, for example, when a previously unavailable Availability Zone returns to a healthy state. For more information, see Rebalancing activities. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html

The Capacity Rebalancing feature in Auto Scaling Groups (ASG) is specifically designed for Spot Instances.

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

0

Thnx, tried below cli and going to check.

aws autoscaling suspend-processes --auto-scaling-group-name eks-asg-grp --scaling-processes AZRebalance

answered 2 years 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.