Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is anyone using haproxy/keepaliveD as their software load balancer in a HA search head environment?

I am configuring my haproxy.cfg and having some trouble getting sticky sessions and proper load balancing working. This is on a pair of load balancers using haproxy/keepaliveD to 3 splunk search heads.

Here is what i currently have, my sessions seem to stick to spweb3 even when i bring it offline, Possibly i need some sort of check option or cookie but the params i've used only work with http not https.

> listen http_proxy :8001
>         mode tcp
>         balance roundrobin
>         stick-table type ip size 200k expire 30m
>         stick on src
>         server srv1
>         server srv2
>         server srv2
share|improve this question

You could potentially try some of the other methods for persistence. One I've used before is balance source. That would use the source IP address to keep traffic going to a particular server while they're all up. Also, your example lists "srv2" twice; I assume that's a typo?

share|improve this answer
Thanks Paul, that was a typo i corrected. I am also trying balance source however still getting the sort of sticky behaviour – user162159 Apr 1 '13 at 21:18
Also I am just trying to use HA proxy to do a loadbalance passthrough to the servers running SSL. I am not sure this is the optimal config and cannot find good examples as of yet. Any help is appreciated. – user162159 Apr 2 '13 at 23:01
actually this config is working for me… – user162159 Apr 4 '13 at 21:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.