jacky1193610322 commented on issue #688: MappedFileQueue load may cause the 
large file blank
URL: https://github.com/apache/rocketmq/issues/688#issuecomment-457059455
 
 
   
你说的先放在内存,然后定时刷盘,从技术上是可以的,反正已经有了很多元数据的刷盘,多一个也是没有问题的,我认为,我说的随机写,是指如果还是用mmap的方式来更新,至于scan耗时的问题,如果不在启动的时候读进来,那么就会在真正发送和消费消息的时候去读,那么假如在scan的过程中需要发10分钟,那么读取的总时间还是10分钟,那么在发送和消费消息的时候,这10分钟就会散落在发送和消费消息的过程中,那么就会造成消息有波动,所以我认为提前预热是可以的,但是也许把恢复和预热分开,这样设计会更好。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to