Solve rocketmq send a message error: service not available now, maybe disk full, CL: 0.87 CQ: 0.87 INDEX: 0.87, maybe your broker machine memory too small

1. problem

Take complete mq single master after a cluster from a single, flattered want to send about the message, I did not expect to run into a pit father's questions:

com.alibaba.rocketmq.client.exception.MQBrokerException: CODE: 14 DESC: service not available now, maybe disk full, CL: 0.87 CQ: 0.87 INDEX: 0.87, maybe your broker machine memory too small.

 1 com.alibaba.rocketmq.client.exception.MQBrokerException: CODE: 14  DESC: service not available now, maybe disk full, CL:  0.87 CQ:  0.87 INDEX:  0.87, maybe your broker machine memory too small.
 2 For more information, please visit the url, https://github.com/alibaba/RocketMQ/issues/64
 3     at com.alibaba.rocketmq.client.impl.MQClientAPIImpl.processSendResponse(MQClientAPIImpl.java:492)
 4     at com.alibaba.rocketmq.client.impl.MQClientAPIImpl.sendMessageSync(MQClientAPIImpl.java:398)
 5     at com.alibaba.rocketmq.client.impl.MQClientAPIImpl.sendMessage(MQClientAPIImpl.java:379)
 6     at com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendKernelImpl(DefaultMQProducerImpl.java:698)
 7     at com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendSelectImpl(DefaultMQProducerImpl.java:877)
 8     at com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:851)
 9     at com.alibaba.rocketmq.client.producer.DefaultMQProducer.send(DefaultMQProducer.java:163)
10     at com.ruishenh.rocketmq.example.Producer.main(Producer.java:78)

2. problem analysis and solution

See the error should be insufficient disk space problem, then all kinds of Baidu, are found very vague explanation, not a real solution to the point, and then saw a post https://bbs.csdn.net/topics/392568834 , also very consistent, although the solutions given to say is not so detailed, but worth a try.

2.1. It should be a problem of disk space, take a look at the disk space

 

 

 Already with 95%, followed by access to Baidu found DefaultMessageStore class rocketmq source, the default rate will free disk less than 75% (rocketmq different versions of this ratio seems not the same) as a treatment insufficient disk space, disk seems a bit inadequate.

2.2. Since the disk space is insufficient, then configure it, the default disk ratio magnify

Rocketmq first cd to the path of the configuration file, configuration I have here is a double-double master-slave synchronization modes, so cd to the configuration file (based on a different path configuration file folders are not the same, but all / conf under).

  1. cd rocketmq-all-4.7.0-bin-release/conf/2m-2s-sync/
  2. vim broker-a.properties
  3. In the final his party diskMaxUsedSpaceRatio = 99 (all nodes in the configuration files are added to it), indicates insufficient free disk error ratio was 99

       

4.:wq save and exit

5. Restart mq

After completion of the above steps, then attempt to send a message:

 

 

 

 

Guess you like

Origin www.cnblogs.com/shenrong/p/12670555.html