Skip to content

Commit d48db3b

Browse files
author
zh_yu
committed
add config parameter to delay
1 parent 7deb97d commit d48db3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/cn/install.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ log.retention.check.interval.seconds=60
186186
dispatch.log.keep.hour=72
187187
# 可选,动态生效,messagelog过期时间
188188
messagelog.retention.hours=72
189+
# 可选,一旦设置后该参数就不允许修改,如果必须修改则需要将消息数据全部清理。该参数用于控制多久生成一个刻度的schedule log(默认一个小时一个刻度),因为QMQ会预先加载一个刻度的消息索引,每条索引32 bytes,如果延时消息量极大,则默认一个小时一个刻度过大。举例:假设延时消息每秒10000 qps,则1个小时的索引大小为: 10000 * 60 * 60 * 32 / 1024 / 1024 = 1098MB。如果比qps比这个数据更高将占用更高的内存,那么如果你的延时消息的最大延时时间不是一两年之久,则可以将这个刻度调小,比如10分钟一个刻度,则10000 qps的内存占用为: 10000 * 60 * 10 * 32 / 1024 / 1024 = 5MB,这个内存占用就小多了
190+
segment.scale.minute=60
189191
```
190192

191193
##启动

0 commit comments

Comments
 (0)