You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/11/23 09:24:26 UTC
[GitHub] [rocketmq] ltyeamin opened a new issue #1609: RokcetMQ双主双从主节点Broker启动失败问题
ltyeamin opened a new issue #1609: RokcetMQ双主双从主节点Broker启动失败问题
URL: https://github.com/apache/rocketmq/issues/1609
The issue tracker is **ONLY** used for bug report(feature request need to follow [RIP process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal)). Keep in mind, please check whether there is an existing same report before your raise a new one.
Alternately (especially if your communication is not a bug report), you can send mail to our [mailing lists](http://rocketmq.apache.org/about/contact/). We welcome any friendly suggestions, bug fixes, collaboration and other improvements.
Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:
**BUG REPORT**
1. Please describe the issue you observed:
我配置了双主双从同步模式下的master1,默认两个namesrv都已经启动,准备开始启动第一个master broker
broker-a.properties配置文件如下:
#所属集群名字
brokerClusterName=rocketmq-cluster
#broker名字,注意此处不同的配置文件填写的不一样
brokerName=broker-a
#0 表示 Master,>0 表示 Slave
brokerId=0
#nameServer地址,分号分割
namesrvAddr=192.168.5.100:9876;192.168.5.101:9876
#在发送消息时,自动创建服务器不存在的topic,默认创建的队列数
defaultTopicQueueNums=4
#是否允许 Broker 自动创建Topic,建议线下开启,线上关闭
autoCreateTopicEnable=true
#是否允许 Broker 自动创建订阅组,建议线下开启,线上关闭
autoCreateSubscriptionGroup=true
#Broker 对外服务的监听端口
listenPort=10911
#删除文件时间点,默认凌晨 4点
deleteWhen=04
#文件保留时间,默认 48 小时
fileReservedTime=120
#commitLog每个文件的大小默认1G
mappedFileSizeCommitLog=1073741824
#ConsumeQueue每个文件默认存30W条,根据业务情况调整
#mapedFileSizeConsumeQueue=300000
mappedFileSizeConsumeQueue=6000000
destroyMapedFileIntervalForcibly=120000
#redeleteHangedFileInterval=120000
#检测物理文件磁盘空间
diskMaxUsedSpaceRatio=88
#存储路径
storePathRootDir=/usr/local/bin/rocketmq-all-4.5.2-bin-release/store
#commitLog 存储路径
storePathCommitLog=/usr/local/bin/rocketmq-all-4.5.2-bin-release/store/commitlog
#消费队列存储路径存储路径
storePathConsumeQueue=/usr/local/bin/rocketmq-all-4.5.2-bin-release/store/consumequeue
#消息索引存储路径
storePathIndex=/usr/local/bin/rocketmq-all-4.5.2-bin-release/store/index
#checkpoint 文件存储路径
storeCheckpoint=/usr/local/bin/rocketmq-all-4.5.2-bin-release/store/checkpoint
#abort 文件存储路径
abortFile=/usr/local/bin/rocketmq-all-4.5.2-bin-release/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
#checkTransactionMessageEnable=false
#发消息线程池数量
#sendMessageThreadPoolNums=128
#拉消息线程池数量
#pullMessageThreadPoolNums=128
开始启动:
nohup sh mqbroker -c /usr/local/bin/rocketmq-all-4.5.2-bin-release/conf/2m-2s-sync/broker-a.properties &
执行上述命令后,无法启动broker-a:
找到日志:
2019-11-24 01:19:42 INFO main - warmMapedFileEnable=false
2019-11-24 01:19:42 INFO main - offsetCheckInSlave=false
2019-11-24 01:19:42 INFO main - debugLockEnable=false
2019-11-24 01:19:42 INFO main - duplicationEnable=false
2019-11-24 01:19:42 INFO main - diskFallRecorded=true
2019-11-24 01:19:42 INFO main - osPageCacheBusyTimeOutMills=1000
2019-11-24 01:19:42 INFO main - defaultQueryMaxNum=32
2019-11-24 01:19:42 INFO main - transientStorePoolEnable=false
2019-11-24 01:19:42 INFO main - transientStorePoolSize=5
2019-11-24 01:19:42 INFO main - fastFailIfNoBufferInStorePool=false
2019-11-24 01:19:42 INFO main - enableDLegerCommitLog=false
2019-11-24 01:19:42 INFO main - dLegerGroup=
2019-11-24 01:19:42 INFO main - dLegerPeers=
2019-11-24 01:19:42 INFO main - dLegerSelfId=
2019-11-24 01:19:42 INFO main - load /usr/local/bin/rocketmq-all-4.5.2-bin-release/store/config/consumerOffset.json OK
2019-11-24 01:19:42 INFO main - load /usr/local/bin/rocketmq-all-4.5.2-bin-release/store/config/consumerFilter.json OK
2019-11-24 01:19:42 INFO main - Try to start service thread:AllocateMappedFileService started:false lastThread:null
2019-11-24 01:19:42 INFO main - Try to shutdown service thread:AllocateMappedFileService started:true lastThread:Thread[AllocateMappedFileService,5,main]
2019-11-24 01:19:42 INFO main - shutdown thread AllocateMappedFileService interrupt true
2019-11-24 01:19:42 INFO main - join thread AllocateMappedFileService elapsed time(ms) 1 90000
2019-11-24 01:19:42 INFO main - Try to shutdown service thread:PullRequestHoldService started:false lastThread:null
最后的日志感觉由点问题,找了好多资料,没把这个问题解决掉,请问我是哪里配置不对吗?
2. Please tell us about your environment:
RocketMQ 4.5.2 Release版 + JDK8
3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
**FEATURE REQUEST**
1. Please describe the feature you are requesting.
2. Provide any additional detail on your proposed use case for this feature.
2. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?
4. If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services