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

Configuring Instance Protection

Scenarios

To control whether an instance can be removed automatically from an AS group, use instance protection. Once configured, when AS automatically scales in the AS group, the instance that is protected will not be removed.

Prerequisites

Instance protection does not protect instances from the following:
  • Health check replacement if the instance fails health checks
  • Manual removal
    • Instance protection does not protect unhealthy instances because such instances cannot provide services.
    • By default, instance protection does not take effect on the ECSs that are newly created in or added to an AS group.
    • If an instance is removed from an AS group, its instance protection setting is lost.

Enabling Instance Protection

  1. Log in to the AS console.
  2. Click the name of the target AS group. The AS group overview page is displayed.

  3. Click the Instances tab. On the instance list page, enable instance protection for target instances. You can enable instance protection for one or more instances at a time.

    Enabling instance protection for a single instance: Locate the row that contains the target instance and enable instance protection.

    Figure 1 Enabling instance protection for a single instance

    Enabling instance protection for multiple instances: Select multiple target instances and choose More > Enable Instance Protection above the instance list. In the displayed dialog box, click OK.

    Figure 2 Enabling instance protection for multiple instances

Disabling Instance Protection

  1. Log in to the AS console.
  2. Click the name of the target AS group. The AS group overview page is displayed.

  3. Click the Instances tab. On the instance list page, disable instance protection for target instances. You can disable instance protection for one or more instances at a time.

    Disabling instance protection for a single instance: Locate the row that contains the target instance and disable instance protection.

    Figure 3 Disabling instance protection for a single instance

    Disabling instance protection for multiple instances: Select multiple target instances and choose More > Disable Instance Protection above the instance list. In the displayed dialog box, click OK.

    Figure 4 Disabling instance protection for multiple instances