All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Manage nodes

Last Updated:May 29, 2025

You can increase or decrease the number of replica nodes on the Node Management page to improve the disaster recovery capabilities of your instance. You can also enable the read/write splitting feature. After this feature is enabled, your instance automatically detects read and write requests and forwards them accordingly without requiring modifications to your business code. This feature is ideal for high-concurrency scenarios where read operations occur more frequently than write operations.

Prerequisites

  • The instance is deployed in cloud-native mode.

  • The instance is a Redis Open-Source Edition or Tair (Enterprise Edition) DRAM-optimized or persistent memory-optimized instance.

  • The instance comes with at least 1 GB of memory.

  • The instance is a high availability instance.

Precautions

We recommend that you configure at least two nodes in the primary and secondary zones for a dual-zone instance:

  • Primary zone: one master node and one replica node or read replica. When a high availability (HA) switchover is triggered, the system preferentially performs the switchover within the same zone to avoid increased latency caused by a failover to the secondary zone.

  • Secondary zone: two replica nodes or read replicas.

Adjust the number of replica nodes

Each standard instance supports 1 to 9 replica nodes, and each shard in a cluster instance supports 1 to 4 replica nodes.

  1. Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.

  2. In the left-side navigation pane, click Node Management.

  3. On the Node Management page, click Modify in the Actions column.

  4. In the panel that appears, increase or decrease the number of replica nodes.

  5. Follow the instructions to complete the payment.

    After the payment is complete, the instance status changes to Changing Configuration. Wait for 1 to 5 minutes until the instance status changes to Running, which indicates that the configuration change is complete. You can view the progress on the instance details page.

Enable read/write splitting

The read/write splitting feature uses a star replication architecture in which all read replicas synchronize data from the primary node, resulting in low data synchronization latency.

Important

Enabling or disabling read/write splitting causes a transient connection to the instance and triggers data migration in the background. Adjusting the number of read replicas does not cause a transient connection. Perform this operation during off-peak hours. Make sure that the instance does not receive many write requests during the operation and that your application can automatically reconnect to the instance.

  1. Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.

  2. In the left-side navigation pane, click Node Management.

  3. Turn on the Read/Write Splitting switch.

  4. In the panel that appears, confirm the instance configurations and order cost. Click Pay.

    Note

    The specifications of new read replicas are the same as the specifications of the master node (original instance).

  5. Follow the instructions to complete the payment.

    After the payment is complete, the instance status changes to Changing Configuration. Wait for 1 to 5 minutes until the instance status changes to Running, which indicates that the configuration change is complete. You can view the progress on the instance details page.

    Note

    If the instance is deployed across two zones, the instance provides endpoints for both the primary zone and the secondary zone (both endpoints support read and write operations). You need to distinguish between the primary zone endpoint and the secondary zone endpoint, and direct requests for the secondary zone to the secondary zone endpoint to achieve proximity-based access and load balancing.

  6. (Optional) Adjust the number of read replicas.

    On the Node Management page, click Modify in the Actions column to adjust the number of read replicas. A standard instance supports 1 to 9 read replicas, and each shard in a cluster instance supports 1 to 4 read replicas.