Skip to content

Conversation

@default50
Copy link
Contributor

This commit adds the ability to suspend the ASG process AZRebalance before putting the instance in StandBy.

This is to cope with (the edge case) scenarios where the amount of subnets and desired instances forces the ASG to rebalance the instances during the deployment.

If the AutoScaling process was suspended beforhand then it's a noop.

@satoshun00
Copy link

+1

I'm having an issue may caused by AZRebalance during deployment, I receive:

At 2016-03-23T10:15:10Z availability zones ap-northeast-1c ap-northeast-1a had 0 2 instances respectively. An instance was launched to aid in balancing the group's zones.

after that, a new instance created by AZRebalance during deployment has deployed with old revision.

I hope this patch will fix that 👊

@default50
Copy link
Contributor Author

With the latest commits I made the script fail in case the suspension/resume of the AZRebalance process can't be achieved.

I also added the relevant permissions needed for this to work to the README.

@default50
Copy link
Contributor Author

Closing this PR in favour of #43 which has a more general approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants