listen rabbitmq_cluster
bind 0.0.0.0:5672
mode tcp
option tcplog
balance roundrobin
timeout client 3h
timeout server 3h
server busappser5 192.168.0.249:5672 check inter 5000 rise 2 fall 3
server busappser6 192.168.0.251:5672 check inter 5000 rise 2 fall 3
server busappser7 192.168.0.231:5672 check inter 5000 rise 2 fall 3
我尝试过
首先
option tcplog
balance roundrobin
source 0.0.0.0 usesrc clientip
第二
server s1 127.0.0.1:7000 send-proxy-v2
第三
option forwardfor
全部无效