我是haproxy的新手,并想知道如果有人可以确认下面的configuration是有效的? 实际上,我想在多个端口上加载平衡的两台服务器。
<snippet> Listen mybackendLB bind 10.6.200.14:555,10.6.200.14:8009,10.6.200.14:443 mode tcp balance roundrobin option httpchk "/test.html" server app1 192.168.0.20:555 check port 8008 server app1 192.168.0.20:8009 check port 8008 server app1 192.168.0.20:443 check port 8008 server app2 192.168.0.21:555 check port 8008 server app2 192.168.0.21:8009 check port 8008 server app2 192.168.0.21:443 check port 8008 <snippet>
无论如何,这会是一个更好的select吗?
<snippet> Listen mybackendLB bind 10.6.200.14:555,10.6.200.14:8009,10.6.200.14:443 mode tcp balance roundrobin option httpchk "/test.html" server app1 192.168.0.20 check port 8008 server app2 192.168.0.21 check port 8008 <snippet>