chore(deploy): Add high availability cluster deployment configuration

This commit is contained in:
2026-03-12 15:18:41 +08:00
parent 93edbc4417
commit 38876f93b4
20 changed files with 2604 additions and 4 deletions
+47
View File
@@ -0,0 +1,47 @@
# RocketMQ Broker 配置
# 主节点配置 (Node-02) - 与Node-03互为主备
brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
# NameServer地址
namesrvAddr = 192.168.1.101:9876;192.168.1.102:9876;192.168.1.103:9876
# 网络配置
brokerIP1 = 192.168.1.102
listenPort = 10911
# 存储配置
storePathRootDir = /home/rocketmq/store
storePathCommitLog = /home/rocketmq/store/commitlog
# 性能配置
sendMessageThreadPoolNums = 16
pullMessageThreadPoolNums = 16
queryMessageThreadPoolNums = 8
# 刷盘配置
flushDiskType = ASYNC_FLUSH
# 主从复制配置
brokerRole = ASYNC_MASTER
# 消息保留时间 (小时)
fileReservedTime = 72
# 提交日志文件大小
mapedFileSizeCommitLog = 1073741824
# 消费队列文件大小
mapedFileSizeConsumeQueue = 300000
# 自动创建Topic
autoCreateTopicEnable = true
autoCreateSubscriptionGroup = true
# 消息最大大小
maxMessageSize = 4194304
# 内存配置
brokerMemory = 512m