Liberxue commented on issue #562: Does Consumer Affect Producer's Tps? URL: https://github.com/apache/rocketmq/issues/562#issuecomment-441945099 RocketMQ提供了自动从Slave读取老数据的功能; >> 主要由``slaveReadEnable``这个参数控制。默认是关的``(slaveReadEnable = false bydefault)``。推荐把它打开,主从都要开。这个参数打开之后,在客户端消费数据时,会判断,当前读取消息的物理偏移量跟最新的位置的差值,是不是超过了内存容量的一个百分比``(accessMessageInMemoryMaxRatio= 40 by default)``。如果超过了,就会告诉客户端去备机上消费数据。如果采用异步主从,也就是brokerRole等于ASYNC_AMSTER的时候,你的备机IO打爆,其实影响不太大。但是如果你采用同步主从,那还是有影响。所以这个时候,最好挂两个备机。因为RocketMQ的主从同步复制,只要一个备机响应了确认写入就可以了,一台IO打爆,问题不大。
---------------------------------------------------------------- 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
