erp-java/rocketmq/config/broker-master-1.conf

77 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# RocketMQ Broker Master-1 Configuration
# 集群名称
clusterName = rocketmq-cluster
brokerName = broker-master-1
# Broker角色ASYNC_MASTER异步主节点
brokerRole = ASYNC_MASTER
# 刷盘策略ASYNC_FLUSH异步刷盘
flushDiskType = ASYNC_FLUSH
# NameServer地址多个用分号分隔
namesrvAddr = namesrv-1:9876;namesrv-2:9876
# Broker监听端口
listenPort = 10911
#HA监听端口
haListenPort = 10909
#Broker IP需根据实际宿主机IP修改
brokerIP1 = 192.168.1.100
brokerIP2 = 192.168.1.100
# 是否允许Broker自动创建Topic
autoCreateTopicEnable = true
# 是否允许Broker自动创建订阅组
autoCreateSubscriptionGroup = true
# 消息存储路径
storePathRootDir = /home/rocketmq/store
# CommitLog存储路径
storePathCommitLog = /home/rocketmq/store/commitlog
# 消费队列存储路径
storePathConsumerQueue = /home/rocketmq/store/consumequeue
# 索引存储路径
storePathIndex = /home/rocketmq/store/index
# 检查点文件路径
storeCheckpoint = /home/rocketmq/store/checkpoint
# abort文件路径
abortFile = /home/rocketmq/store/abort
# 消息最大大小(字节)
maxMessageSize = 6291456
# 删除文件时间点默认凌晨4点
deleteWhen = 04
# 文件保留时间(小时)
fileReservedTime = 72
# 队列数
# 默认队列数(建议根据业务调整)
defaultTopicQueueNums = 8
# 发送消息超时时间(毫秒)
sendMessageTimeout = 3000
# 拉取消息超时时间(毫秒)
pullMessageTimeout = 30000
# 主题配置
# 订单主题
orderTopicNames = order-topic
# 库存主题
inventoryTopicNames = inventory-topic
# 财务主题
financeTopicNames = finance-topic
# 通知主题
notificationTopicNames = notification-topic