To enhance the high availability of applications, you can distribute multiple nodes in different zones when creating a cluster.

You can create a cluster with one node or a zero-node cluster. Then, add nodes of different zones by expanding the cluster or adding existing Elastic Compute Service (ECS) instances.

Note
  • Nodes added by expanding the cluster are Pay-As-You-Go ECS instances.
  • Nodes added by adding existing ECS instances can be Pay-As-You-Go ECS instances or monthly/yearly subscription ECS instances.

Add nodes of different zones by expanding the cluster

Procedure

  1. Log on to the Container Service console.
  2. Click Swarm > Clusters in the left-side navigation pane.
  3. ClickMore at the right of the cluster that you want to expand and then select > Expand. As shown in the following figure.


  4. The Expand page appears. Configure the specifications of the new nodes.
    You can create nodes of different zones by setting Zone.


  5. Click Expand to add the new nodes to the cluster.
  6. Repeat the preceding steps to create and add nodes of different zones to the cluster.

Add nodes of different zones by adding existing ECS instances

Prerequisites

To add nodes by using this method, purchase ECS instances from the ECS purchase page first, and select different zones for them during the purchase.

Procedure

  1. Log on to the Container Service console.
  2. Click Swarm > Clusters in the left-side navigation pane.
  3. ClickMore at the right of the cluster that you want to add existing ECS instances and then select > Add Existing Instances. As shown in the following figure.


  4. Select ECS instances of different zones and add them manually or automatically to the cluster.
    For more information, see Add an existing ECS instance.


  5. Repeat the preceding steps to add ECS instances of different zones to the cluster.