We haproxy that balances two server load APP1 and APP2. For example, we have set the weight for each of these, the weight of app 1 is 255 and the second has an app 2. If there should be the case then goes down App 1 transferred to the session for the app and the connection to what we can achieve it through Haprosi? We attach just below your haproxy config guides us
global log 127.0.0.1 local0 chroot / var / lib / haproxy pidfile /var/run/haproxy.pid maxconn user 4000 haproxy group haproxy Statistics socket / etc / haproxy / haproxysock level administrator daemon default mode http log in global options dontlognull options http-server- option httplog option redispatch timeout 10000 timeout customer 300000 timeout server 300000 maxconn 60000 reconnect 3 stats uri / haproxy_stats statistics scope HAProxy \ Statistics Authentication statistics hadmin: unMetric_2012 views Tall Main *: 5000 ACL is_app path_beg I / Static / images / javascript / stylesheet / js ACL is_app path_end i .jpg .gif .png .css .js ACL is_app path_end I / apps / use_backend application if_app Default_backend app backend static balance roundrobin server static 127.0.0.1:4331 Czech Backend app option httpchk GET / app balance Roundobin Rekpr ^ ([^ \] *) / app ((/?. **************** **************) indirect stick table type string lane 40 sizes 5M expire 60m stick store cookies: the response -kuki (SID) Table application stick (SID) Table url_param application stick (SID) Table Application Server APP1 demo1.unmetric.com:8080 cookie S1 weighs 255 check server APP2 demo2.unmetric.com:8080 cookie s2 weight 0 After verification
Haproxy does not handle your backend app session replication.
it uses cookies or request parameter for viscosity but your session replication your Backend app should handle yourself.
No comments:
Post a Comment