I am using apache web server as a load balancer for two tomcat instances behind apache. When the first request goes to node A and second request from the same client goes to no
Pls try this, I'm sure this will work for you.
Step-1: Add below code in httpd.conf:
BalancerMember http://// route=jvm1
BalancerMember http://// route=jvm2
ProxySet lbmethod=bytraffic
ProxySet stickysession=JSESSIONID
ProxyPass // balancer://mycluster/
ProxyPassReverse // balancer://mycluster/
Step-2: Add below code in server.conf:
a)
b)