Updated on 2024-05-27 GMT+08:00

Stopping an ECS

You can use the Stopping an ECS Instance card to create a task to stop one or more ECSs.

Creating a Task for Stopping an ECS

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Automation (Retiring). The Automation page is displayed.
  3. In the navigation pane, choose Scenarios. On the displayed page, click the Stopping an ECS Instance card, or choose > Create Task in the upper right corner of the card.
  4. Set parameters by referring to Table 1.

    Figure 1 Stopping an ECS
    Table 1 Parameters for stopping an ECS

    Parameter

    Description

    Task Name

    User-defined task name.

    Enter up to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. By default, Auto is selected, which means that the system automatically generates a task name.

    Enterprise Project

    Select the enterprise project to which the task belongs.

    Stop Type

    ECS shutdown type. The default value is SOFT.

    • SOFT: normal shutdown
    • HARD: forcible shutdown

  5. Select an instance.

    1. Click Add. The instance selection page is displayed. A maximum of 100 instances can be selected for a single task.
    2. For Instance Type, the default value is ECS. For Method, the default value is Specific. For details about the methods, see Table 2.
      Figure 2 Selecting an instance

      Table 2 Selection method description

      Selection Method

      Description

      Specific

      Enter search criteria and select instances from the instance list. By default, instances are searched by name.

      By filter

      • Enter filter attributes and values to search for instances.
      • If there are multiple filter criteria, the search is performed based on the AND relationship.
      • This method also takes effect for instances added later.

      By tag

      • Set tag keys and values, and specify one or more tags to select instances.
      • If there are multiple tags, the search is performed based on the AND relationship.
      • This method also takes effect for instances added later.

      From CMDB

      Enter search criteria or keywords and select instances from CMDB. There are two types of nodes:

      • Static: Select an ECS under a specified CMDB application.
      • Dynamic: Select a node in the CMDB application to dynamically obtain ECSs under the node. This method also takes effect for instances added later.

  6. If needed, expand More to set the review configuration and execution policy by referring to Table 3.

    Table 3 More settings

    Category

    Parameter

    Description

    Review

    Review

    Specifies whether to enable manual review. By default, this function is disabled.

    You can only modify the review configuration by modifying the atomic service card in the tool market.

    Reviewer

    After manual review is enabled, you need to select a reviewer.

    Alternatively, create a topic and add a subscription on the SMN console to notify a reviewer.

    Execution Policy

    Batch Release

    Specifies whether to enable batch release. By default, this function is disabled.

    Instances for Each Batch

    Number of instances on which tasks can be executed at the same time.

    Interval

    Interval for executing each batch of tasks.

  7. Click Execute. On the task execution page that is displayed, view the task execution status.

    You can also click Save. The created task is displayed on the task management page for subsequent task execution or other operations.