Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure RocketMQ production environment

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, Xiaobian will bring you about how to configure RocketMQ production environment. The article is rich in content and analyzes and narrates from a professional perspective. After reading this article, I hope you can gain something.

1. profile

Please modify

brokerClusterName=XXXCluster

brokerName=broker-a

brokerId=0

listenPort=10911

Please modify

namesrvAddr=x.x.x.x:9876;x.x.x.x::9876

defaultTopicQueueNums=4

autoCreateTopicEnable=false

autoCreateSubscriptionGroup=false

deleteWhen=04

fileReservedTime=48

mapedFileSizeCommitLog=1073741824

mapedFileSizeConsumeQueue=50000000

destroyMapedFileIntervalForcibly=120000

redeleteHangedFileInterval=120000

diskMaxUsedSpaceRatio=88

#Storage path

storePathRootDir=/data/rocketmq/store

#commitLog Storage Path

storePathCommitLog=/data/rocketmq/store/commitlog

#Consumption Queue Storage Path

storePathConsumeQueue=/data/rocketmq/store/consumequeue

#Message index storage path

storePathIndex=/data/rocketmq/store/index

# checkpoint file storage path

storeCheckpoint=/data/rocketmq/store/checkpoint

#abort file storage path

abortFile=/data/rocketmq/store/abort

maxMessageSize=65536

flushCommitLogLeastPages=4

flushConsumeQueueLeastPages=2

flushCommitLogThoroughInterval=10000

flushConsumeQueueThoroughInterval=60000

brokerRole=SYNC_MASTER

flushDiskType=ASYNC_FLUSH

checkTransactionMessageEnable=false

maxTransferCountOnMessageInMemory=1000

transientStorePoolEnable=true

warmMapedFileEnable=true

pullMessageThreadPoolNums=128

slaveReadEnable=true

transferMsgByHeap=false

waitTimeMillsInSendQueue=1000

The above is how to configure RocketMQ production environment shared by Xiaobian for everyone. If you happen to have similar doubts, you may wish to refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report