rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

diskMaxUsedSpaceRatio had no effect.

Open lindow2009 opened this issue 2 years ago • 5 comments

set diskMaxUsedSpaceRatio=99 in broker.conf and properties,but it had no effect.

always has error。 org.apache.rocketmq.client.exception.MQBrokerException: CODE: 14 DESC: service not available now. It may be caused by one of the following reasons: the broker's disk is full [CL: 0.92 CQ: 0.92 INDEX: 0.92], messages are put to the slave, message store has been shut down

how to fix it?

lindow2009 avatar Jul 28 '22 04:07 lindow2009

It looks like there are two problems:

  1. If you want to delete the old commitlog immediately, you can try to use fileReservedTime and diskMaxUsedSpaceRatio these wo parameters at the same time.
  2. This error can be optimized, and sending a message to the slave broker will also generate this exception, would you like to submit a PR to polish it?

duhenglucky avatar Jul 28 '22 11:07 duhenglucky

Same problem here.Still not work after I tried fileReservedTime and diskMaxUsedSpaceRatio both

WeiJiaYue avatar Jul 29 '22 05:07 WeiJiaYue

Same problem here.Still not work after I tried fileReservedTime and diskMaxUsedSpaceRatio both

Maybe you only have one commitlog in your store path. It is recommended to write more data, multiple commitlogs, and then set the values of these two parameters as small as possible, and then observe the effect. If it does not work, wish you can provide more detailed information. such as store.log

duhenglucky avatar Jul 30 '22 11:07 duhenglucky

Problem

  • diskMaxUsedSpaceRatio had no effect.
  • with error below
org.apache.rocketmq.client.exception.MQBrokerException: CODE: 14 DESC: service not available now. It may be caused by one of the following reasons: the broker's disk is full [CL: 0.92 CQ: 0.92 INDEX: 0.92], messages are put to the slave, message store has been shut down

How to solve

  • With -Drocketmq.broker.diskSpaceWarningLevelRatio instead of diskMaxUsedSpaceRatio

New Question Finally, solved this problem after delving in source code. In fact ,the parameter diskMaxUsedSpaceRatio does not work, it can be solved by parameter diskSpaceWarningLevelRatio with -Drocketmq.broker.diskSpaceWarningLevelRatio

As the snippet below,the diskMaxUsedSpaceRatio seems to have no effect,Is it possible to be optimized here? image

WeiJiaYue avatar Aug 01 '22 13:08 WeiJiaYue

set diskMaxUsedSpaceRatio=99 in broker.conf and properties,but it had no effect.

always has error。 org.apache.rocketmq.client.exception.MQBrokerException: CODE: 14 DESC: service not available now. It may be caused by one of the following reasons: the broker's disk is full [CL: 0.92 CQ: 0.92 INDEX: 0.92], messages are put to the slave, message store has been shut down

how to fix it?

With -Drocketmq.broker.diskSpaceWarningLevelRatio instead of diskMaxUsedSpaceRatio

WeiJiaYue avatar Aug 01 '22 13:08 WeiJiaYue

This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.

github-actions[bot] avatar Aug 02 '23 00:08 github-actions[bot]

This issue was closed because it has been inactive for 3 days since being marked as stale.

github-actions[bot] avatar Aug 05 '23 00:08 github-actions[bot]