I. Background demand
When you do not know what type of EC2 instances the own choice, it is not clear when the peak traffic, then we use Auto Scaling can be very convenient to solve our problems, he automatically expand as we set the load pressure ensure the normal operation of the business and lower volume reduction, in order to achieve the minimum cost of the case.
Second, the configuration step
2.1, created AMI
First, the host EC2 we are running to make a mirror image, internal service set from the start, to ensure that the expansion when all services are available.
2.2, create a load balancing target group
Auto Scaling with the ELB to use, dynamic load distribution to the rear end of the machine, we need a target group to store our Auto Scaling cluster machine.