By default, Alibaba Cloud automatically restarts an ECS instance if an automatic recovery event occurs for the instance, such as when the instance goes down unexpectedly or when an active O&M plan is carried out. You can customize the automatic recovery mode for an instance by modifying its maintenance attribute.

Background information

For more information about automatic recovery and the applicable scope and impact of each maintenance attribute, see Automatic recovery events of instances.

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Instances.
  3. In the top navigation bar, select a region.
  4. Find the target instance and use one of the following methods to modify the instance maintenance attribute.
    • Method 1: In the Actions column corresponding to the instance, choose More > Operations and Troubleshooting > Modify Instance Maintenance Attribute.Modify instance maintenance attribute - Path 1
    • Method 2: Click the instance ID to go to the instance details page. In the Basic Information section, choose More > Modify Instance Maintenance Attribute.Modify instance maintenance attribute - Path 2
  5. In the Modify Instance Maintenance Attribute dialog box that appears, modify the instance maintenance attribute as needed. Click OK.
    • If only cloud disks are attached to the instance, you can select one of the following options for Maintenance Action:
      • Automatically Restart
      • Stop
    • If local disks are also attached to the instance, you can select one of the following options for Maintenance Action:
      • Automatically Restart
      • Stop
      • Automatically Redeploy
  6. In the Basic Information section of the Instance Details page, confirm the setting that you made for Maintenance Attribute.