集羣節點說明
三個節點,兩個內存節點一個磁盤節點,內存節點提供對外訪問,磁盤節點用於作爲備份節點.
集羣爲鏡像集羣,所有的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