I have installed Pound (for SSL off-load) and HAproxy on Debian 6 Squeeze. I am trying to understand the HAProxy documentation to set up sticky sessions as this load balancer will go in front of a web app.
I have also had a look around Server Fault for others' configuring HAProxy for sticky sessions; The obvious way I have seen all over the Internet is something like this under a backend
statement;
balance roundrobin
stick store-request src
stick-table type ip size 200k expire 2m
server web1 10.0.0.2:8080 check
server web2 10.0.0.3:8080 check
The other less common method I have seen is to use the option appsession
, as doucmented here.
Which should I be using, or both? And why?
Thank you.