需要有关组合的帮助和/或想法:haproxy + rabbitmq。
拓扑:
问题:
备注:
问题:
haproxy.cfg:
global
log 127.0.0.1 local1
maxconn 4096
daemon
user haproxy
group haproxy
defaults
timeout client 50000
timeout server 50000
timeout connect 5000
log global
mode tcp
retries 3
maxconn 2000
option redispatch
option tcplog
listen ampq
bind *:5672
mode tcp
balance leastconn
timeout client 3h
timeout server 3h
stick match src
stick-table type ip size 200k expire 30m
option clitcpka
server rabbit1 10.6.1.1:5672 check inter 1s rise 3 fall 1
server rabbit2 10.6.1.2:5672 check inter 1s rise 3 fall 1
server rabbit3 10.6.1.3:5672 check inter 1s rise 3 fall 1