All Products
Search
Document Center

PolarDB:Add or remove nodes

Last Updated:Mar 28, 2026

Scale a PolarDB for PostgreSQL cluster up or down by adding or removing read-only nodes from the console. Before you begin, review the capacity limits, constraints, and expected impact for your cluster type.

Cluster capacity limits

The maximum number of nodes depends on your cluster type.

Centralized clusters (Enterprise Edition or Standard Edition):

EditionPrimary nodesRead-only nodes
Enterprise Edition1Up to 15
Standard Edition1Up to 7

Centralized clusters use an active-active failover mechanism to maintain high availability during role transitions.

Distributed clusters: Must have at least 1 compute node and 1 data node. New nodes must have the same specifications as existing compute or data nodes.

Read-only nodes with different specifications

For centralized clusters (Enterprise Edition or Standard Edition), read-only nodes do not have to match the primary node specifications. The following constraints apply:

  • At least one read-only node in the cluster must have the same specifications as the primary node.

  • The memory of a new read-only node must be at least half the memory of the primary node.

  • CPU cores must meet the minimum mapping relative to the primary node:

Primary node CPU coresMinimum CPU cores for read-only node
22
44
84
168
3216
6432
8832
  • During a primary/read-only node failover, a read-only node with different specifications cannot be promoted to primary.

For distributed clusters, all nodes must have the same specifications. Mixed-specification nodes are not supported.

Billing

New nodes follow the same billing method as the cluster:

  • Subscription clusters: new nodes are billed on the subscription method.

  • Pay-as-you-go clusters: new nodes are billed on the pay-as-you-go method.

When you remove a node, the system issues a refund for the remaining subscription period or stops billing immediately for pay-as-you-go nodes. Storage fees are based on actual usage and are not affected by the number of nodes.

For details, see Configuration change fees and Billable items.

Expected impact

Review the expected impact before proceeding.

Cluster typeOperationImpact
CentralizedAdd node~5 minutes; no impact on database operations
CentralizedRemove nodeConnections to the removed node are briefly disconnected; other nodes are unaffected
DistributedAdd compute or data nodeServices blocked for 1 minute due to the lock mechanism
DistributedRemove compute nodeConnections to the removed node are briefly interrupted; other nodes are unaffected
DistributedRemove data nodeData is automatically migrated in the background; migration time is proportional to data volume; CPU and I/O usage up to 20%

To minimize impact:

  • Add or remove nodes during off-peak hours or maintenance windows.

  • Add or remove one node at a time. To change multiple nodes, repeat the operation separately for each node.

  • Make sure your applications support automatic reconnection before removing any node.

Add nodes

Centralized cluster

PolarDB for PostgreSQL centralized clusters are clusters whose database engine is Enterprise Edition or Standard Edition.

  1. Log on to the PolarDB console. In the left-side navigation pane, click Clusters. Select the region where your cluster resides, then find the cluster.

  2. Verify that no specification change tasks are in progress on the cluster before continuing.

  3. Go to the Add/Remove Node page using one of the following methods:

    • Click the cluster ID. On the Basic Information page, click Add/Remove Node in the Database Nodes section.

    image

    image

  4. Select Add Node and click OK.

    image

  5. Click + Add a Read-only Node and configure the Switching Time:

    To add a read-only node with different specifications, make sure at least one existing read-only node has the same specifications as the primary node. To add multiple nodes, click + Add a read-only node again for each additional node.
    OptionDescription
    Switch NowThe node is added immediately after you confirm the order.
    Switch AtSpecify a time within the next 24 hours. The node is added within 30 minutes after the specified time. View or cancel scheduled tasks on the Scheduled Tasks page. For details, see View or cancel a scheduled task.
  6. Complete payment based on your billing method:

    • Pay-as-you-go: Read the terms of service and click Buy Now.

    • Subscription: Read the terms of service, click Buy Now, then confirm the order and payment method on the Purchase page and click Subscribe.

Distributed cluster

  1. Log on to the PolarDB console. In the left-side navigation pane, click Clusters. Select the region where your cluster resides, then click the cluster ID to go to the Basic Information page.

  2. Verify that no specification change tasks are in progress on the cluster before continuing.

  3. In the Configurations section, click Add Node.

    image

  4. Click + Add a Node and configure the Switching Time:

    OptionDescription
    Switch NowThe node is added immediately after you confirm the order.
    Switch AtSpecify a time within the next 24 hours. The node is added within 30 minutes after the specified time. View or cancel scheduled tasks on the Scheduled Tasks page. For details, see View or cancel a scheduled task.
  5. Complete payment based on your billing method:

    • Pay-as-you-go: Read the terms of service and click Buy Now.

    • Subscription: Read the terms of service, click Buy Now, then confirm the order and payment method on the Purchase page and click Subscribe.

Remove nodes

Important

Make sure your applications support automatic reconnection before removing any node. Removing a node causes brief connection interruptions to that node.

Centralized cluster

PolarDB for PostgreSQL centralized clusters are clusters whose database engine is Enterprise Edition or Standard Edition.

  1. Log on to the PolarDB console. In the left-side navigation pane, click Clusters. Select the region where your cluster resides, then find the cluster.

  2. Verify that no specification change tasks are in progress on the cluster before continuing.

  3. Go to the Add/Remove Node page using one of the following methods:

    • Click the cluster ID. On the Basic Information page, click Add/Remove Node in the Database Nodes section.

    image

    image

  4. Select Delete Node and click OK.

    image

  5. Click the - symbol next to the node you want to remove. Configure the Switching Time:

    A cluster can only have one primary node. To maintain high availability, keep at least one read-only node in the cluster.
    OptionDescription
    Switch NowThe node is removed immediately after you confirm the order.
    Switch AtSpecify a time within the next 24 hours. The node is removed within 30 minutes after the specified time. View or cancel scheduled tasks on the Scheduled Tasks page. For details, see View or cancel a scheduled task.
  6. Complete payment based on your billing method:

    • Pay-as-you-go: Read the terms of service and click Buy Now.

    • Subscription: Read the terms of service, click Buy Now, then confirm the order and payment method on the Purchase page and click Subscribe.

Distributed cluster

  1. Log on to the PolarDB console. In the left-side navigation pane, click Clusters. Select the region where your cluster resides, then click the cluster ID to go to the Basic Information page.

  2. Verify that no specification change tasks are in progress on the cluster before continuing.

  3. In the Configurations section, click Delete Node.

    image

  4. Click the - symbol next to the node you want to remove. Configure the Switching Time:

    A distributed cluster must always have at least one compute node and one data node.
    OptionDescription
    Switch NowThe node is removed immediately after you confirm the order.
    Switch AtSpecify a time within the next 24 hours. The node is removed within 30 minutes after the specified time. View or cancel scheduled tasks on the Scheduled Tasks page. For details, see View or cancel a scheduled task.
  5. Complete payment based on your billing method:

    • Pay-as-you-go: Read the terms of service and click Buy Now.

    • Subscription: Read the terms of service, click Buy Now, then confirm the order and payment method on the Purchase page and click Subscribe.

API reference

OperationDescription
CreateDBNodesAdds read-only nodes to a PolarDB cluster
DeleteDBNodesRemoves read-only nodes from a PolarDB cluster
ModifyDBNodesClassChanges the specifications of nodes in a PolarDB cluster
ModifyDBNodeClassChanges the specifications of a node in a PolarDB cluster
RestartDBNodeRestarts a node in a PolarDB cluster