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
mq集群不能采用kill -9 杀死进程,否则生产者和消费者不能及时识别mq的断连,会影响生产者和消费者正常的业务处理。
参考资料:
https://my.oschina.net/moooofly/blog/424660
http://blog.csdn.net/u012333307/article/details/48470615
脑裂的监控
http://www.07net01.com/2017/02/1809470.html
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: Mybatis的注解应用之关系映射
- 下一篇: C++ STL 中 map 容器的说明和使用技巧