简体   繁体   中英

How to attach instances to AWS autoscale when creating autoscale group?

Currently I have two instances running under elb. If I create an autoscale group with min size 2 with this elb, it spawns two more instances and puts it under elb.

But I only want the instances come up on scale out condition not on creation of the group.

The min. instances in the autoscale group will be launched at creation. If you only want 2 instances and then 2 more when scaling, you must setup your original 2 instances in the autoscale group initially otherwise the autoscale group has no knowledge of your (already) existing 2 instances.

What I do is to create my desired instance. Snapshot it. Terminate it, then relaunch in an autoscale group via the min parameter. I then set the conditions for the extra instances to be launched when conditions are met, like CPU usage or any other attributed in cloudwatch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM