Hello, we have two machines with identical haproxy configurations, set up
to load balance each other, with Tomcat on the back end.
We're seeing the SERVERID cookie only being set intermittently, despite the
fact that as per our understanding it should be set with every response.
When the cookie is NOT set, the request isn't printed when haproxy is
running in debug mode, and the backend "Total Sessions" doesn't increment
on the status page.
Here's our configuration, we'd sincerely appreciate any hints anyone may
have.
Thanks,
-Chris
-----
global
log 127.0.0.1 local2 info
maxconn 4096
ulimit-n 8250
chroot /home/haproxy
user haproxy
group haproxy
daemon
quiet
pidfile /home/haproxy/haproxy.pid
defaults
log global
mode http
option httplog
option dontlognull
retries 3
redispatch
maxconn 2000
contimeout 5000
clitimeout 60000
srvtimeout 60000
stats uri /gz-haproxy-status
120
cookie SERVERID insert indirect nocache
no option transparent
frontend haproxy *:85
default_backend tomcat
backend tomcat
balance roundrobin
option httpchk GET /warehouse/static/images/gazelle_logo_tm.png
server stg_wh_1 10.94.246.222:8181 cookie i-9b333efb check inter 9000 ri
se 2 fall 3 port 8181 maxconn 1000
server stg_wh_2 10.223.37.147:8181 cookie i-73b5be11 check inter 9000 ri
se 2 fall 3 port 8181 maxconn 10