A scaling policy specifies the conditions for triggering a scaling action as well as the triggered operation. If the conditions are met, a scaling action is triggered to perform the required operation. This section describes how to manage AS policies, including creating, modifying, enabling, disabling, immediately executing, and deleting an AS policy.
For example, the instance utilization in an AS group is generally low during the off-peak hours from 00:00 to 08:00. To maximize resource utilization, you can configure two AS policies to enable AS to automatically remove an instance at 00:00 and add one at 08:00 every day.
For details, see sections Dynamically Expanding Resources and Expanding Resources as Planned.
If you have created scheduled or periodic AS policies that are triggered at the same time, AS will execute the one created later. This constraint does not apply to alarm-triggered AS policies.
Modify parameter settings of an AS policy if it cannot meet service requirements.
An AS policy can trigger scaling actions only when it and the AS group are both enabled. Enable one or multiple AS policies for an AS group as required.
Locate the row containing the target AS group and click View AS Policy in the Operation column. On the displayed page, locate the row containing the target AS policy and click Enable in the Operation column.
Disable a specified AS policy if you do not want it to trigger any scaling action within a specified period of time.
Locate the row containing the target AS group and click View AS Policy in the Operation column. On the displayed page, locate the row containing the target AS policy and click Disable in the Operation column.
Perform this operation to make the number of instances in an AS group reach the expected number of instances immediately.
Locate the row containing the target AS group and click View AS Policy in the Operation column. On the displayed page, locate the row containing the target AS policy and click Execute Now in the Operation column.
Delete an AS policy that will not be used for triggering scaling actions.
An AS policy can be deleted even when the scaling action triggered based on the AS policy is in progress. Deleting the AS policy does not adversely affect the in-progress scaling action.
Locate the row containing the target AS group and click View AS Policy in the Operation column. On the displayed page, locate the row containing the target AS policy and choose More > Delete in the Operation column.