Updated on 2022-02-22 GMT+08:00

Configuring Instance Protection

Scenarios

Configure instance protection if you want to specify one or more ECSs not to be automatically removed from an AS group. After the configuration, when AS automatically reduces the number of ECSs in an AS group, the in-service ECSs with instance protection enabled will not be removed.

Prerequisites

In the following scenarios, ECSs will still be removed from the AS group even if instance protection is enabled:
  • The ECS is not healthy according to the health check.
  • The ECS is manually removed from the AS group.
    • Instances in the abnormal health status cannot provide services. The AS group preferentially ensures that all instances in the group are normal. Therefore, instance protection cannot protect abnormal instances.
    • By default, instance protection does not take effect on the ECSs that are newly created in or added to an AS group.
    • Instance protection becomes invalid immediately when the target ECS is removed from the AS group.

Enabling Instance Protection

  1. Log in to the management console.
  2. Under Computing, click Auto Scaling. In the navigation pane on the left, choose Instance Scaling.
  3. Click the name of the target AS group.
  4. Click the Instances tab. Select one or more ECSs and choose Enable Instance Protection from the More drop-down list. In the displayed Enable Instance Protection dialog box, click Yes.

    You can also locate the row containing the target ECS and click Enable Instance Protection in the Operation column. Then, in the Enable Instance Protection dialog box, click Yes.

Disabling Instance Protection

  1. Log in to the management console.
  1. Under Computing, click Auto Scaling. In the navigation pane on the left, choose Instance Scaling.
  2. Click the name of the target AS group.
  3. Click the Instances tab. Select one or more ECSs and choose Disable Instance Protection from the More drop-down list. In the displayed Disable Instance Protection dialog box, click Yes.

    You can also locate the row containing the target ECS and click Disable Instance Protection in the Operation column. Then, in the Disable Instance Protection dialog box, click Yes.