
有沒有大佬幫忙看一下怎么回事
以下是這個主節點的配置
#所屬集群名字
brokerClusterName=rocketmq-cluster
#broker名字,注意此處不同的組態檔填寫的不一樣
brokerName=broker-a
#0 表示 Master,>0 表示 Slave
brokerId=0
#nameServer地址,分號分割
namesrvAddr=rocketmq-nameserver1:9876;rocketmq-nameserver2:9876
#在發送訊息時,自動創建服務器不存在的topic,默認創建的佇列數
defaultTopicQueueNums=4
#是否允許 Broker 自動創建Topic,建議線下開啟,線上關閉
autoCreateTopicEnable=true
#是否允許 Broker 自動創建訂閱組,建議線下開啟,線上關閉
autoCreateSubscriptionGroup=true
#Broker 對外服務的監聽埠
listenPort=10911
#洗掉檔案時間點,默認凌晨 4點
deleteWhen=04
#檔案保留時間,默認 48 小時
fileReservedTime=120
#commitLog每個檔案的大小默認1G
mapedFileSizeCommitLog=1073741824
#ConsumeQueue每個檔案默認存30W條,根據業務情況調整
mapedFileSizeConsumeQueue=300000
#destroyMapedFileIntervalForcibly=120000
#redeleteHangedFileInterval=120000
#檢測物理檔案磁盤空間
diskMaxUsedSpaceRatio=88
#存盤路徑
storePathRootDir=/app/software/rocketmq/store
#commitLog 存盤路徑
storePathCommitLog=/app/software/rocketmq/store/commitlog
#消費佇列存盤路徑存盤路徑
storePathConsumeQueue=/app/software/rocketmq/store/consumequeue
#訊息索引存盤路徑
storePathIndex=/app/software/rocketmq/store/index
#checkpoint 檔案存盤路徑
storeCheckpoint=/app/software/rocketmq/store/checkpoint
#abort 檔案存盤路徑
abortFile=/app/software/rocketmq/store/abort
#限制的訊息大小
maxMessageSize=65536
#flushCommitLogLeastPages=4
#flushConsumeQueueLeastPages=2
#flushCommitLogThoroughInterval=10000
#flushConsumeQueueThoroughInterval=60000
#Broker 的角色
#- ASYNC_MASTER 異步復制Master
#- SYNC_MASTER 同步雙寫Master
#- SLAVE
brokerRole=SYNC_MASTER
#刷盤方式
#- ASYNC_FLUSH 異步刷盤
#- SYNC_FLUSH 同步刷盤
flushDiskType=SYNC_FLUSH
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/268873.html
標籤:Java相關
上一篇:賬號解鎖后第一次發帖
