跳到主要内容

CANCEL-ALTER-SYSTEM

CANCEL-ALTER-SYSTEM

Name

CANCEL DECOMMISSION

Description

该语句用于撤销一个节点下线操作。(仅管理员使用!)

语法:

  • 通过 host 和 port 查找 backend
CANCEL DECOMMISSION BACKEND "host:heartbeat_port"[,"host:heartbeat_port"...];
  • 通过 backend_id 查找 backend
CANCEL DECOMMISSION BACKEND "id1","id2","id3...";

Example

  1. 取消两个节点的下线操作:

     CANCEL DECOMMISSION BACKEND "host1:port", "host2:port";
  2. 取消 backend_id 为 1 的节点的下线操作:

    CANCEL DECOMMISSION BACKEND "1","2";

Keywords

CANCEL, DECOMMISSION, CANCEL ALTER

Best Practice