跳到主要内容

ADD BROKER

描述

该语句用于添加一个 BROKER 节点。(仅管理员使用!)

语法:

ALTER SYSTEM ADD BROKER broker_name "broker_host1:broker_ipc_port1","broker_host2:broker_ipc_port2",...;

示例

  1. 增加两个 Broker

     ALTER SYSTEM ADD BROKER "host1:port", "host2:port";
  2. fe 开启 fqdn(fqdn) 时添加一个 Broker

     ALTER SYSTEM ADD BROKER "broker_fqdn1:port";

关键词

ALTER, SYSTEM, ADD, FOLLOWER, ALTER SYSTEM

最佳实践