集群节点说明
三个节点,两个内存节点一个磁盘节点,内存节点提供对外访问,磁盘节点用于作为备份节点.
集群为镜像集群,所有的queue所属的主为两个raw节点上.
客户端连接方式为长连接,配置有超时与重连.
HAproxy配置
frontend SOA_Rabbitmq_frontend
bind 172.18.4.240:5672
mode tcp
option clitcpka
timeout client 1m
maxconn 10000
default_backend SOA_Rabbitmq_Backend
backend SOA_Rabbitmq_Backend
mode tcp
timeout queue 1m
timeout server 3m
option srvtcpka
option redispatch
fullconn 10000
balance roundrobin
option httpchk
server s01_soa_rabbitmq_disk_backup 172.18.4.230:5672 weight 3 maxconn 10000 check port 5672 inter 1000 rise 1 fall 2 backup
server s02_soa_rabbitmq_raw_active 172.18.4.231:5672 weight 3 maxconn 5000 check port 5672 inter 1000 rise 1 fall 2
server s03_soa_rabbitmq_raw_active 172.18.4.232:5672 weight 3 maxconn 5000 check port 5672 inter 1000 rise 1 fall 2