更改节点角色

更改节点角色,将主节点降级为辅助节点或将辅助节点升级为主节点。

Redis 软件集群包含一个主节点,负责协调集群范围内的管理操作,以及多个从节点。具有任一角色的节点都可以托管数据库分片。

降级主节点

使用集群管理器UI将主节点降级为辅助节点:

  1. 节点屏幕上,点击你想要提升的节点的More actions button

    Click the more actions button for a node to access node actions.
  2. 从列表中选择设置为辅助节点

  3. 选择其中一个选项以确定新的主节点:

    • 自动:集群决定哪个节点成为新的主节点。

    • 选择特定节点: 您可以手动选择哪个节点成为新的主节点。

    The Set as a secondary node dialog has two options to select the new primary node, either automatically or manually.
  4. 点击确认

提升次级节点

使用集群管理器UI将辅助节点提升为主节点:

  1. 节点屏幕上,点击您想要提升的节点的More actions button

    Click the more actions button for a node to access node actions.
  2. 从列表中选择设为主节点

  3. 点击确认

在此节点成为主节点后,所有集群管理流量都将定向到该节点。

RATE THIS PAGE
Back to top ↑