rocketmq
rocketmq copied to clipboard
diskMaxUsedSpaceRatio had no effect.
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?
It looks like there are two problems:
- If you want to delete the old commitlog immediately, you can try to use fileReservedTime and diskMaxUsedSpaceRatio these wo parameters at the same time.
- 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?
Same problem here.Still not work after I tried fileReservedTime
and diskMaxUsedSpaceRatio
both
Same problem here.Still not work after I tried
fileReservedTime
anddiskMaxUsedSpaceRatio
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
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?
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
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.
This issue was closed because it has been inactive for 3 days since being marked as stale.