Updated on 2024-01-11 GMT+08:00

Managing ECS Groups

Scenarios

An ECS group logically classifies ECSs. ECSs in an ECS group comply with the same policy. Only the anti-affinity policy is available now, which enables the ECSs in the same ECS group to be deployed on different hosts to improve service reliability.

You can use an ECS group to deploy target ECSs on different hosts to ensure high service availability and underlying DR capabilities.

An ECS group supports the following functions:

You are not allowed to add an existing ECS to an ECS group. Instead, add it only when creating the ECS.

Creating an ECS Group

Create an ECS group to apply the same policy to all group members. ECS groups are independent from each other.

  1. Log in to the management console.
  2. Under Computing, click Elastic Cloud Server.
  3. In the navigation pane on the left, choose ECS Group.
  4. On the ECS Group page, click Create ECS Group.
  5. Enter an ECS group name.
  6. Select a policy for the ECS group.
  7. Click OK.

Adding an ECS to an ECS Group

Add an ECS to an ECS group only when creating the ECS.

  • When you add an ECS to an ECS group, it will be deployed on a host different from other ECSs in this group for improved service reliability. When the ECS is being restarted, the startup may fail due to insufficient resources. In such a case, remove the ECS from the ECS group and try to restart the ECS again.
  • Only stopped ECSs can be added to an ECS group.
  • Do not try to start the ECS when it is being added to an ECS group.
  1. Log in to the management console.
  2. Under Computing, choose Elastic Cloud Server.
  3. In the navigation pane on the left, choose ECS Group.
  4. Locate the row that contains the target ECS group and click Add ECS in the Operation column.
  5. On the Add ECS page, select an ECS to be added.
  6. Click OK. The ECS is added to the ECS group.

Removing an ECS from an ECS Group

After an ECS is removed from an ECS group, the ECS does not comply with the anti-affinity policy anymore.

  1. Log in to the management console.
  2. Under Computing, click Elastic Cloud Server.
  3. In the navigation pane on the left, choose ECS Group.
  4. Expand the ECS group information and view the ECSs in the ECS group.
  5. Click Remove in the Operation column of the target ECS.
  6. In the displayed dialog box, click Yes.

    The ECS is removed from the ECS group.

Deleting an ECS Group

After an ECS group is deleted, the policy does not apply to the ECSs in the ECS group anymore.

  1. Log in to the management console.
  2. Under Computing, click Elastic Cloud Server.
  3. In the navigation pane on the left, choose ECS Group.
  4. Click Delete in the Operation column of the target ECS group.
  5. In the displayed dialog box, click Yes.