Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 spweb1sb-w1-inf.shared-bo.mtv1.vrsn.com:8001
>         server srv2 spweb2sb-w2-inf.shared-bo.mtv1.vrsn.com:8001
>         server srv2 spweb3sb-w1-inf.shared-bo.mtv1.vrsn.com:8001
share|improve this question

1 Answer 1

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 serverfault.com/questions/236496/… –  user162159 Apr 4 '13 at 21:59

Your Answer

 
discard

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.