Back to Redis

Change Node Role

content/operate/rs/7.8/clusters/change-node-role.md

latest1.8 KB
Original Source

A Redis Software cluster contains a primary node, which coordinates cluster-wide management operations, and multiple secondary nodes. Nodes with either role can host database shards.

Demote primary node

To demote the primary node to a secondary node using the Cluster Manager UI:

  1. On the Nodes screen, click {{< image filename="/images/rs/buttons/button-toggle-actions-vertical.png#no-click" alt="More actions button" width="22px" class="inline" >}} for the primary node you want to demote.

    {{<image filename="images/rs/screenshots/nodes/primary-node-more-actions.png" alt="Click the more actions button for a node to access node actions.">}}

  2. Select Set as a secondary node from the list.

  3. Select one of the options to determine the new primary node:

    • Automatically: The cluster decides which node becomes the new primary node.

    • Choose specific node: You can manually select which node becomes the new primary node.

    {{<image filename="images/rs/screenshots/nodes/primary-node-set-as-secondary-dialog.png" alt="The Set as a secondary node dialog has two options to select the new primary node, either automatically or manually.">}}

  4. Click Confirm.

Promote secondary node

To promote a secondary node to become the primary node using the Cluster Manager UI:

  1. On the Nodes screen, click {{< image filename="/images/rs/buttons/button-toggle-actions-vertical.png#no-click" alt="More actions button" width="22px" class="inline" >}} for the secondary node you want to promote.

    {{<image filename="images/rs/screenshots/nodes/secondary-nodes-more-actions.png" alt="Click the more actions button for a node to access node actions.">}}

  2. Select Set as the primary node from the list.

  3. Click Confirm.

After this node becomes the primary node, all cluster management traffic is directed to it.