You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/04/01 11:26:58 UTC

[GitHub] [rocketmq] duhenglucky edited a comment on issue #1910: CPU spike on slave node

duhenglucky edited a comment on issue #1910: CPU spike on slave node
URL: https://github.com/apache/rocketmq/issues/1910#issuecomment-607192459
 
 
   @yongliangcode 非常详细的描述,看上去调整后只在slave 上面出现了上述状况,原因可能有下面几点:
   (1)四个slave 应该是同时部署在了两个ecs上面,所以相对io压力会比主大一些,顺序写也会受影响,从监控上面看,内存也几乎满了。
   (2)看了下内核参数的影响,有个地方有些问题:vm.dirty_ratio应该要大于vm.dirty_background_ratio,因为一旦达到vm.dirty_ratio是会发生阻塞的,试下把vm.dirty_background_ratio改为25,vm.dirty_ratio不变。
   (3)尝试下升级操作系统,好像是有个操作系统bug也会导致相关的情况,大于2.7的内核对于内存的使用会更加激进一些,当然vm. min_free_kbytes 这些参数也不起作用了。

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


With regards,
Apache Git Services