GitHub user Yelijah closed a discussion: 自动主从切换模式 如何指定从节点数量和主节点数量?
官方文档上自动主从切换后,不需要为broker指定brokerId和brokerRole: <img width="1220" alt="image" src="https://github.com/user-attachments/assets/8feb603f-32dd-481c-8024-a156ec416bb5"> 但是经过测试后,我的四个broker都变成master了,压根没有从节点: <img width="990" alt="image" src="https://github.com/user-attachments/assets/0178dffc-1fce-4a6f-be89-3004a318829a"> 这是我的broker配置文件 ``` listenPort=20911 brokerClusterName = DefaultCluster brokerName = broker-a deleteWhen = 04 fileReservedTime = 48 flushDiskType = ASYNC_FLUSH #设置当前broker监听的IP brokerIP1 = 192.168.101.253 #设置主从同步监听的ip brokerIP2 = 192.168.101.253 # 是否允许 Broker 自动创建Topic,建议线下开启,线上关闭 autoCreateTopicEnable=false # 是否允许 Broker 自动创建订阅组,建议线下开启,线上关闭 autoCreateSubscriptionGroup=false aclEnable=true enableControllerMode=true controllerAddr=192.168.101.253:19976;192.168.101.253:19977;192.168.101.254:19976 ``` GitHub link: https://github.com/apache/rocketmq/discussions/8521 ---- This is an automatically sent email for dev@rocketmq.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@rocketmq.apache.org