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

Adding Nodes

Scenarios

As the instance deployment time and data increase, the database performance and storage will gradually reach the bottleneck. Adding nodes can improve the instance performance and storage capacity. You can only add nodes for GaussDB instances that are deployed independently.

  • The scaling duration depends on the amount of data. The default timeout period is seven days. When nodes are being added, the instance is available, but you are not allowed to perform other operations on the console. If you need to perform any operations, contact customer service.
  • You can flexibly add CNs or shards as needed. It is recommended that the number of CNs of a DB instance do not exceed twice the number of shards.
  • DB instances can be scaled out only when they are in the Available state. During shard scale-out, you can still query and insert data, query services are not interrupted, and the data insertion performance is not affected. The performance of join queries on local tables across node groups during redistribution may be affected.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.

  3. Click in the upper left corner of the page and choose Databases > GaussDB.
  4. On the Instances page, click the name of the instance for which you want to add nodes.
  5. In the DB Information area of the Basic Information page, add shards or CNs.

    Adding shards
    1. Click Add next to Shards.
      Figure 1 Adding shards
    2. Specify the number of shards to be added. Click Next.
      Figure 2 Adding shards

    3. Confirm the information and then click Submit.

    By default, a shard contains three replicas (a primary DN and two standby DNs). Each time you add a shard, three replicas will be added.

    Adding CNs
    1. Click Add next to Coordinator Nodes.
    2. Specify the number of coordinator nodes to be added and the AZ.
      Figure 3 Adding CNs

      If single-AZ deployment is specified during the instance creation, CNs are only added to the AZ you specified.

    3. Click Next.
    4. Confirm the information and click Submit.