#4.7.1版本
#所屬集群名字
brokerClusterName=rocketmq-cluster
#broker名字,名字可重復,為了管理,每個master起一個名字,他的slave同他,eg:Amaster叫broker-a,他的slave也叫broker-a
brokerName=broker-a
#0 表示 Master,>0 表示 Slave
brokerId=0
brokerIp=127.0.0.1
#nameServer地址,分號分割
namesrvAddr=127.0.0.1:9876
#在發送消息時,自動創建服務器不存在的topic,默認創建的隊列數
defaultTopicQueueNums=8
#是否允許 Broker 自動創建Topic,建議線下開啟,線上關閉
autoCreateTopicEnable=true
#是否允許 Broker 自動創建訂閱組,建議線下開啟,線上關閉
autoCreateSubscriptionGroup=true
#Broker 對外服務的監聽端口,
listenPort=10911
#刪除文件時間點,默認凌晨 4點
deleteWhen=04
#文件保留時間,默認 48 小時
fileReservedTime=48
#commitLog每個文件的大小默認1G
mapedFileSizeCommitLog=1073741824
#ConsumeQueue每個文件默認存30W條,根據業務情況調整
mapedFileSizeConsumeQueue=300000
destroyMapedFileIntervalForcibly=120000
redeleteHangedFileInterval=120000
#檢測物理文件磁盤空間
diskMaxUsedSpaceRatio=88
#存儲路徑
storePathRootDir=D:\\rocketMqTestData\\store
#commitLog 存儲路徑
storePathCommitLog=D:\\rocketMqTestData\\store\\commitlog
#消費隊列存儲路徑存儲路徑
storePathConsumeQueue=D:\\rocketMqTestData\\store\\consumequeue
#消息索引存儲路徑
storePathIndex=D:\\rocketMqTestData\\store\\index
#checkpoint 文件存儲路徑
storeCheckpoint=D:\\rocketMqTestData\\store\\checkpoint
#abort 文件存儲路徑
abortFile=D:\\rocketMqTestData\\store\\abort
#限制的消息大小
maxMessageSize=65536
flushCommitLogLeastPages=4
flushConsumeQueueLeastPages=2
flushCommitLogThoroughInterval=10000
flushConsumeQueueThoroughInterval=60000
#Broker 的角色
brokerRole=ASYNC_MASTER
#刷盤方式
flushDiskType=ASYNC_FLUSH
checkTransactionMessageEnable=false
#發消息線程池數量
sendMessageTreadPoolNums=128
#拉消息線程池數量
pullMessageTreadPoolNums=128