RabbitMQ脑裂问题解决方案调查
现象:
RabbitMQ GUI上显示
Network partition detected
Mnesia reports that this RabbitMQ cluster has experienced a network partition. There is a risk of losing data. Please read RabbitMQ documentation about network partitions and the possible solutions.
原因分析:
在 相对不怎么信任的分区里,对那个分区的节点实行
在出现问题的节点上执行: sbin/rabbitmqctl stop_app
在出现问题的节点上执行: sbin/rabbitmqctl start_app
注意:rabbitmq集群不能采用kill -9 杀死进程,否则生产者和消费者不能及时识别mq的断连,会影响生产者和消费者正常的业务处理。
本文出自张佃栋de博客,转载时请注明出处及相应链接。
本文永久链接: https://zhangdd.com/939.html