I am trying to setup cluster with haproxy, I have one load balancer and two nodes. Some how haproxy is only taking one node. It runs fine until one XXX.XX.X.196 is up and running but as soon as i shut it down and try to start haproxy again it give me this error.
I doesnt handle the request when tomcat on XXX.XX.X.196 is shutdown but I still have tomcat on XXX.XX.X.193 up and running.
XXX.XX.X.189: Load Balancer
XXX.XX.X.193: Node 1, Running Apache tomcat
XXX.XX.X.196: Node 2, Running Apache tomcat
global log 127.0.0.1 local2 debug #log using syslog service on localhost maxconn 4096 # Total Max Connections. This is dependent on ulimit daemon defaults mode http maxconn 4096 clitimeout 60000 srvtimeout 30000 contimeout 4000 option httpclose # Disable Keepalive log global option httplog listen farm XXX.XX.X.189:80 mode http stats uri /haproxy #show haproxy colsole balance roundrobin cookie farmID insert #assign a farmID coockie to each client option httpclose option httpchk option forwardfor ## Define your servers to balance server node1 XXX.XX.X.193:8081 cookie farmID_node1 check server node2 XXX.XX.X.196:8081 cookie farmID_node2 check