Home > Back-end >  RockerMQ synchronous double master-slave node news writing strategy there is always a slave node wit
RockerMQ synchronous double master-slave node news writing strategy there is always a slave node wit

Time:03-19


Is there a big help to have a look at what's going on
The following is the primary node configuration
# belongs to the cluster name
BrokerClusterName=rocketmq - cluster
# broker name, pay attention to the different configuration file to fill in this application is not the same as
BrokerName=broker - a
# 0 said Master, & gt; 0 means Slave
BrokerId=0
# nameServer addresses, a semicolon
NamesrvAddr=rocketmq - nameserver1:9876; Rocketmq - nameserver2:9876
# when sending messages, automatically create the server does not exist topic, created by default queue number
DefaultTopicQueueNums=4
# whether to allow the Broker to automatically create Topic, it is recommended that the offline open, online closed
AutoCreateTopicEnable=true
# whether to allow the Broker to automatically create a subscription set, it is recommended that the offline open, online closed
AutoCreateSubscriptionGroup=true
# Broker foreign service listening on port
ListenPort=10911
# delete files point in time, the default
4 o 'clock in the morningDeleteWhen=4
# file retention time,
48 hours by defaultFileReservedTime=120
# commitLog size of each file by default 1 g
MapedFileSizeCommitLog=1073741824
Article 30 w # ConsumeQueue each file by default to save, adjust according to the business situation
MapedFileSizeConsumeQueue=300000
# destroyMapedFileIntervalForcibly=120000
# redeleteHangedFileInterval=120000
# test physical file disk space
DiskMaxUsedSpaceRatio=88
# store path
StorePathRootDir=/app/software/rocketmq/store
# commitLog store path
StorePathCommitLog=/app/software/rocketmq/store/commitlog
# consumption queue storage paths store path
StorePathConsumeQueue=/app/software/rocketmq/store/consumequeue
# message index store path
StorePathIndex=/app/software/rocketmq/store/index
# checkpoint file storage path
StoreCheckpoint=/app/software/rocketmq/store/checkpoint
# abort file storage path
AbortFile=/app/software/rocketmq/store/abort
# limit message size
MaxMessageSize=65536
# flushCommitLogLeastPages=4
# flushConsumeQueueLeastPages=2
# flushCommitLogThoroughInterval=10000
# flushConsumeQueueThoroughInterval=60000
The role of # Broker
# - ASYNC_MASTER asynchronous replication Master
# - SYNC_MASTER synchronous double Master written
# - SLAVE
BrokerRole=SYNC_MASTER
# brush set way
# - ASYNC_FLUSH asynchronous brush plate
Brush # - SYNC_FLUSH synchronous disk
FlushDiskType=SYNC_FLUSH
  • Related