How to use dynamic demand increase and decrease Auto Scaling examples

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.

How to use dynamic demand increase and decrease Auto Scaling examples

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.

How to use dynamic demand increase and decrease Auto Scaling examples

2.3, Creating Classic Load Balancer

How to use dynamic demand increase and decrease Auto Scaling examples

How to use dynamic demand increase and decrease Auto Scaling examples

2.4, create a startup configuration

Guess you like

Origin blog.51cto.com/wzlinux/2413375