This document explains how to use OpenAPIs to create and configure overall scaling solutions, including scheduled, dynamic, customized, and fixed quantity scaling.
Follow the steps shown in the following figure. The first three steps are used to create a simple scaling solution:
Create a scaling group. Configure the minimum (Min Size) and maximum (Max Size) number of ECS instances for scaling, and select a Server Load Balancer instance and an RDS instance.
Create scaling configuration. Specify the specifications of ECS instances used for Auto Scaling, such as Image ID and Instance Type.
Enable the scaling group according to the scaling configuration created in Step 2.
Create a scaling rule. For example, adding N (number) ECS instances.
Create a scheduled task. For example, triggering the scaling rule at 13:00.
Create an alarm task (CloudMonitor API PutAlarmRule). For example, adding 1 ECS instance when the CPU usage is equal to or greater than 80%.