If you want to quickly create a vertical scaling task, you can clone an existing vertical
scaling task and then modify the task.
Procedure
- Go to the Vertical Scaling page.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Vertical Scaling.
- In the top navigation bar, select a region.
- Find the vertical scaling task that you want to clone and click Clone in the Actions column.
- On the Clone page, modify the parameters of the vertical scaling task based on your requirements.
- Specify the task type, instance, and new instance types.
- Type: specifies the direction of the vertical scaling task.
- Upgrade: upgrades the instance type of the instance to increase the computing power.
- Downgrade: downgrades the instance type of the instance to decrease the computing power.
- Select Instances: specifies the instance whose instance type to change.
- Select Instance Specifications: specifies the new instance types. When multiple new instance types are specified,
the instance type of the selected instance is upgraded or downgraded in the order
in which these new instance types are specified.
Note Only instance types of the same instance family can be upgraded or downgraded in a
vertical scaling task.
- To create a vertical scaling task of the upgrade type, you can specify up to 10 instance
types in ascending order of computing power. Each specified instance type has a smaller
specification of vCPUs and memory than the next instance type. For example, the current
instance type is ecs.g6.large. You specify the following instance types in sequence:
ecs.g6.3xlarge, ecs.g6.4xlarge, and ecs.g6.6xlarge. If the upgrade task is successfully
executed two consecutive times, the current instance type is changed to ecs.g6.4xlarge.
- To create a vertical scaling task of the downgrade type, you can specify up to five
instance types in descending order of computing power. Each specified instance type
has a larger specification of vCPUs and memory than the next instance type. For example,
the current instance type is ecs.g6.6xlarge. You specify the following instance types
in sequence: ecs.g6.4xlarge, ecs.g6.3xlarge, and ecs.g6.large. If the downgrade task
is successfully executed three consecutive times, the current instance type is changed
to ecs.g6.large.
- Specify the trigger type.
- Scheduled: Select Scheduled Trigger, and specify the recurrence and execution time of the task.
- If you want the task to be executed only once, select Execute Now or Executed Once at the Specified Time and specify the execution time.
- If you want the task to be repeatedly executed, select Executed Periodically, and specify the recurrence, time zone, and end time of the task. You can click Quick Selection to specify the execution time of the task or configure a cron expression to specify
the recurrence of the task.
- Threshold: Select Threshold Trigger, and specify the threshold condition and trigger mute period.
- Rule Description: Specify the threshold condition for statistical values of a Cloud
Monitor metric. The threshold condition contains the following parameters: metric
name, aggregation period of monitoring data, number of times that statistics are collected,
statistical method, comparison operator, and threshold. The following figure shows
an example in which the aggregation period is set to 5 minutes, and the vertical scaling
task is triggered when the average value of the DiskIOPSWrite metric exceeds 70 three
consecutive times.

- Trigger Mute Period: During the mute period, the vertical scaling task can be executed
only once.
Note We recommend that you configure an appropriate threshold condition. If the number
of times that statistics are collected is small or if the mute period is short, ECS
instances may be frequently started, stopped, and upgraded or downgraded. This affects
your service availability.
- Specify permissions for the RAM role used by Operation Orchestration Service (OOS).
- If you are using vertical scaling for the first time, you must create a RAM role for
OOS and grant the RAM role permissions to manage resources of ECS and Auto Scaling.
For more information, see Create a RAM role for a trusted Alibaba Cloud service and Grant permissions to a RAM role.
Note We recommend that you attach the AliyunECSFullAccess and AliyunESSFullAccess policies
to grant permissions to the RAM role.
- If you are using vertical scaling not for the first time, you can select an existing
RAM role such as OOSServiceRole.
- Optional:Add a description and tags for the vertical scaling task for easy management.
- Click Create Vertical Scaling.
Result
After the vertical scaling task is created, the system executes the task at the specified
time or when the threshold condition is met. Operations such as stopping the instance,
changing the instance type, and restarting the instance are automatically performed.
You can view the execution details of the task. For more information, see View a vertical scaling task.