Improve the Auto Scaling Group with Dynamic Scaling
Our scaling policy with a fixed size of instances works very well: whenever an instance is terminated, AWS launches a new instance in replacement accordingly to the policy.
But how can we improve our scaling policy to have something more dynamic and elastic which will increase or decrease the capacity of our Auto Scaling Group depending on the volume of traffic?
If you have such a requirement, it is certainly worth for you having a look at dynamic scaling capacity.
Let's see how to build a dynamic scaling policy for our Auto Scaling Group to achieve the
following:
- When the number of requests increases, size of Auto scaling group will automatically increase to handle traffic.
-
When the number of requests decreases, size of Auto Scaling will automatically decrease to save capacity and money.