Hi,
Just recently I discovered HAProxy and I'm really impressed. I've got a
cluster setup together with Keepalived. Now I have newby question which
someone might want to address. Which configuration is preferred:
listen myproxyA
bind 212.12.12.12:80
bind 212.12.12.12:443
bind 212.24.24.24:80
bind 212.24.24.24:443
option httpchk
option tcplog
mode tcp
balance roundrobin
server app01_master 10.0.0.6 check port 80 inter 5000
server app02_backup 10.0.0.7 check port 80 inter 5000 backup
or:
listen myproxyB-http
bind 212.12.12.12:80
bind 212.24.24.24:80
balance roundrobin
mode http
option httpchk
option httplog
server app07_backup 10.0.0.6:80 check port 80 inter 5000 backup
server app08_master 10.0.0.7:80 check port 80 inter 5000
listen myproxyB-https
bind 212.12.12.12:443
bind 212.24.24.24:443
balance roundrobin
mode tcp
option httpchk
option tcplog
server app07_backup 10.0.0.6:443 check port 80 inter 5000 backup
server app08_master 10.0.0.7:443 check port 80 inter 5000
Thank you,
Mark Ruys