Files
Work-configuration-file/RocketMQ/线下实验/B_broker-a-s.properties

37 lines
1.0 KiB
Properties
Raw Normal View History

2025-10-07 15:58:15 +08:00
# Broker 集群名称
brokerClusterName = TestCluster
# Broker 逻辑主名称(主从共享)
brokerName=broker-a
# 设置为 0 表示主节点DLeger 模式下为固定 0
brokerId=0
brokerIP1=192.168.70.15
aclEnable=true
# Broker 角色:异步主节点
brokerRole=SYNC_MASTER
# 磁盘刷写方式
flushDiskType=SYNC_MASTER
# Broker 监听客户端连接的端口
listenPort=10911
# NameServer 地址(多个以分号分隔)
namesrvAddr=192.168.70.17:9876;192.168.70.15:9876
# 启用 DLedger即5.x推荐主从机制
enableDLegerCommitLog=true
dLegerGroup=dlmq-a
dLegerPeers=n0-192.168.70.17:40911;n1-192.168.70.15:40911
dLegerSelfId=n1
# Broker-A 从节点存储路径
storePathRootDir=/data/rocketmq/store/broker-a-s
storePathCommitLog=/data/rocketmq/store/broker-a-s/commitlog
storePathConsumeQueue=/data/rocketmq/store/broker-a-s/consumequeue
storePathIndex=/data/rocketmq/store/broker-a-s/index
storeCheckpoint=/data/rocketmq/store/broker-a-s/checkpoint
abortFile=/data/rocketmq/store/broker-a-s/abort