Sunday, November 16, 2014

tomcat 7 2nd instance sticky sessions for the impatient

In my pervious tomcat post, I quickly configured httpd and 2 tomcat 7 instances. In this post i will show you how to balance your app with sessionid's. This will allow a session



[root@web1 ~]# cat /etc/httpd/conf.d/proxy_ajp.conf

<Proxy balancer://cluster>
BalancerMember ajp://localhost:8009 loadfactor=1
BalancerMember ajp://localhost:9009 loadfactor=2
ProxySet lbmethod=bytraffic
</Proxy>
ProxyPass / balancer://cluster/ stickysession=JSESSIONID|jsessionid
ProxyPass /manager balancer://cluster/manager
ProxyPass /host-manager balancer://cluster/host-manager
ProxyPass /examples balancer://cluster/examples
ProxyPass /docs balancer://cluster/docs
ProxyPass /orbit balancer://cluster/orbit stickysession=JSESSIONID|jsessionid

No comments:

Post a Comment