rabbitmq 集群 ha负载 Consumer raised exception, processing can restart if the connection factory
来源:互联网 发布:淘宝线下实体店赚钱吗 编辑:程序博客网 时间:2024/06/05 11:40
情况是酱紫滴
线上有一个rabbitmq 集群,一台磁盘模式的 两台内存模式的. 使用erlang 做cookie 做同步.haproxy做负载
在连接一会后 程序抛出异常 Consumer raised exception, processing can restart if the connection factory
原因是因为ha 在做负载的时候 设置玩tcp连接后 还需要把默认的 timeout server 和 timeout client 注释掉.
这样ha就不会自动的关闭mq的tcp 长连接了
华丽的分割线_____________________________________________________________________
global
log 127.0.0.1 local3
maxconn 65535 #这里可以改大一些 增加扩容
chroot /usr/local/haproxy
uid nobody
gid nobody
daemon
nbproc 1
pidfile /usr/local/haproxy/haproxy.pid
#debug
#tune.ssl.default-dh-param 2048
defaults
log 127.0.0.1 local3
#mode tcp
option tcplog
#option http-server-close
option dontlognull
option forwardfor
option redispatch
retries 2
maxconn 3000 #这里可以改大一些 增加扩容
timeout connect 5000
#timeout client 100000 将此行注释
#timeout server 100000 将此行注释
listen web_ha
bind 0.0.0.0:9999
mode http
transparent
stats refresh 30s
stats uri /haproxy-stats
stats hide-version
stats realm Haproxy\statistics
stats auth ********:*********
listen rabbitmq_cluster 0.0.0.0:5670
mode tcp
option tcplog
option tcpka #允许发送tcp 长连接
log global
balance roundrobin
#cookie rabbit insert indirect nocache
#server rabbitmq-1 192.168.8.114:5672 weight 2 check inter 2000 rise 1 fall 5
server rabbitmq-2 192.168.8.115:5672 check inter 5000
server rabbitmq-3 192.168.8.116:5672 check inter 5000
______________________________________________________________________________
感谢 http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2013-January/024858.html
- rabbitmq 集群 ha负载 Consumer raised exception, processing can restart if the connection factory
- Rabbitmq集群HA高可用环境部署
- Windows & RabbitMQ:集群(clustering) & 高可用(HA)
- RABBITMQ集群与负载均衡
- RabbitMQ集群+Hapoxy负载安装
- Processor ARM920T raised an exception.Cause:The processor was reset
- Processor ARM920T raised an exception.Cause:The pr
- processor ARM79_0 raised an exception.Cause: The processor was reset
- What Can I do if "The type initializer for 'Emgu.CV.CvInvoke' threw an exception"?
- Encryption raised an exception
- Android—Exception raised during rendering: ScrollView can host only one direct child
- Exception raised during rendering: ScrollView can host only one direct child
- RabbitMQ集群及负载均衡搭建
- Android Exception MapActivity: Couldn't get connection factory client
- Processor ARM920T raised an exception.Cause:The pr
- Error : APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06502: PL
- AXD Error:Processor ARM79_0 raised an exception. Cause: The processor was reset
- web应用的负载均衡、集群、高可用(HA)解决方案
- 安卓入门--AutoCompleteTextView详解
- java IO基本知识总结
- 【GDOI 2016 Day2】第一题 SigemaGO
- 建图
- Android开源项目大全 - 视图View类
- rabbitmq 集群 ha负载 Consumer raised exception, processing can restart if the connection factory
- 设置mysql 远程访问
- 简易版 :文件的下载
- 数据流图
- jdk和jre的下载及安装
- 《C++ Concurrency in Action》读书笔记一 多线程与线程管理
- word 2013在win8.1/win10下用微软自带输入法打字,光标会走位
- android AttributeSet 自定义控件
- 分享自己收藏的几个iOS博客