Updated on 2026-09-04 GMT+08:00

Managing AS Policies

Scenarios

An AS policy specifies the conditions for triggering a scaling action as well as the operation that will be performed. If the conditions are met, a scaling action is triggered automatically.

This section describes how to manage an AS policy, including modifying, enabling, disabling, executing, and deleting an AS policy.

Modifying an AS Policy

If a particular AS policy cannot meet service requirements, you can modify the parameter settings of the policy.

  1. Log in to the AS console.
  2. Locate the row containing the target AS group and click View AS Policy in the Operation column.
    Figure 1 View AS policies

  3. Locate the row that contains the target AS policy and choose More > Modify in the Operation column.
    Figure 2 Modifying an AS Policy

  4. In the displayed Modify AS Policy dialog box, modify the parameters and click OK.
    Figure 3 Modifying an AS policy

Enabling an AS Policy

An AS policy can trigger scaling actions only when it and the AS group are both enabled. You can enable one or more AS policies for an AS group as required.

  • Before enabling multiple AS policies, ensure that the AS policies do not conflict with one another.
  • An AS policy can be enabled only when its status is Disabled.

The procedure is as follows:

  1. Log in to the AS console.
  2. Locate the row containing the target AS group and click View AS Policy in the Operation column.
  3. Enable one or more AS policies.
    • Enable one AS policy: Locate the row containing the target AS policy and click Enable in the Operation column.
      Figure 4 Enabling one AS policy

    • Enable multiple AS policies in a batch: Select the AS policies to be enabled and click Enable above the AS policy list.
      Figure 5 Enabling AS policies in a batch

Disabling an AS Policy

If you do not want a particular AS policy to trigger any scaling actions within a specified period of time, you can disable it.

  • If all of the AS policies configured for an AS group are disabled, no scaling action will be triggered for this AS group. However, if you manually change the value of Expected Instances, a scaling action will still be triggered.
  • You can disable an AS policy only when its status is Enabled.

The procedure is as follows:

  1. Log in to the AS console.
  2. Locate the row containing the target AS group and click View AS Policy in the Operation column.
  3. Disable one or more AS policies.
    • Disable one AS policy: Locate the row containing the target AS policy and click Disable in the Operation column.
      Figure 6 Disabling one AS policy

    • Disable multiple AS policies in a batch: Select the AS policies to be disabled and click Disable above the AS policy list.
      Figure 7 Disabling AS policies in a batch

Manually Executing an AS Policy

You can make the number of instances in an AS group reach the expected number of instances immediately by manually executing an AS policy.

  • You can manually execute an AS policy if the scaling conditions configured in the AS policy are not met.
  • You can manually execute an AS policy only when the AS group and AS policy are both in Enabled state.
The procedure is as follows:
  1. Log in to the AS console.
  2. Locate the row containing the target AS group and click View AS Policy in the Operation column.
  3. Locate the row that contains the target AS policy and click Execute Now in the Operation column.
    Figure 8 Executing an AS policy

  4. In the displayed dialog box, click OK.

If Policy Type is set to Alarm and Alarm Policy Type to Refined scaling, the scaling policy cannot be executed immediately.

Deleting an AS Policy

You can 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 by the policy is in progress. Deleting the AS policy does not affect a scaling action that has already started.

The procedure is as follows:

  1. Log in to the AS console.
  2. Locate the row containing the target AS group and click View AS Policy in the Operation column.
  3. Delete one or more AS policies.
    • Delete one AS policy: Locate the row containing the target AS policy and choose More > Delete in the Operation column.
      Figure 9 Deleting one AS policy

    • Delete multiple AS policies in a batch: Select the AS policies to be deleted and click Delete above the AS policy list.
      Figure 10 Deleting AS policies in a batch

Viewing Execution Logs of an AS Policy

In the logs, you can view the execution status, execution time, and the numbers of instances before and after the AS policy is executed.
  1. Log in to the AS console.
  2. Locate the row containing the target AS group and click View AS Policy in the Operation column.
  3. Click the name of the target AS policy to view its execution logs.
    Figure 11 Viewing Execution Logs of an AS Policy

    To optimize resource usage, the system automatically deletes policy execution logs that have been stored for more than 180 days.