All Products
Search
Document Center

PolarDB:Add or remove nodes

Last Updated:Nov 29, 2024

A PolarDB-X instance is a distributed cluster that consists of multiple nodes. This topic describes how to scale out or in a PolarDB-X instance by adding or removing nodes.

Usage notes

  • For a PolarDB-X instance whose compute node version is earlier than V5.4.18-17108394, you must upgrade the instance to the latest stable version before you add or remove nodes. For more information, see Release notes and View and update the version of an instance.

  • To avoid SQL compatibility issues, we recommend that you perform a comprehensive verification on an instance of the target version before the upgrade.

Procedure

  1. Log on to the PolarDB-X console.

  2. In the top navigation bar, select the region where the instance is deployed.

  3. On the Instances page, click the PolarDB-X 2.0 tab.

  4. On the PolarDB-X 2.0 tab, find the instance that you want to manage. If you want to add nodes, click Add Node in the Actions column. If you want to remove nodes, click Delete Node.

  5. On the page that appears, select the number of nodes that you want to add or remove.

    Warning
    • Adding or removing data nodes involves data migration and should be performed in the maintenance window. During metadata modification in the data migration process, long transactions that take over 15 seconds may be interrupted.

    • Removing a node reduces your instance's maximum load capacity. Before doing so, make sure the remaining capacity is sufficient to handle your business's workload.

    • Historical backup sets become invalid after you remove a storage node. Make sure you back up data immediately after node removal.

    • During the process of adding or removing data nodes, data balancing tasks are triggered on data nodes. The tasks consume CPU and I/O resources of data nodes, which may reduce your business performance. To avoid this issue, PolarDB-X provides a maintenance window for you to run data balancing tasks at specified points in time. This allows data balancing tasks to run during off-peak hours.

  6. Click Buy Now.

  7. In the dialog box that appears, click Sign and Purchase.

    After you add or remove nodes, the status of the instance changes to Adding Node or Deleting Node on the Instances page.

    Note

    You're charged for adding a node, but not for removing a node.