Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load Balancing between Tomcat servers config in httpd.conf

Status
Not open for further replies.

kumasa19

IS-IT--Management
Oct 2, 2013
2
0
0
CA
Hi Team,

We are currently using below configuring we are using in our web servers ( 2 servers) for the LB and to maintain stikysession. As per this configurations, the requests are always reaching to sandeep1 server and on failure of this node, the request is reaching to sandeep2. Failover is happening but not the actual LB. To achieve the LB, we did the same configuration in our other web server by reversing the BalancerMember.

ProxyPass /sandeep balancer://mycluster/
Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
<Proxy balancer://mycluster>
BalancerMember route=1
BalancerMember route=2
ProxySet stickysession=ROUTEID
</Proxy>
ProxyPassReverse /sandeep balancer://sandeep

Now, we have a requirement to add a third server to this LB and need your help in the configurations. Adding 'BalancerMember route=3' is going to handle the requests only up on above two servers failure.

Please suggest me on the configurations for the actual LB between three tomcat servers.

Thanks,
Sandeep Kumar S
 
Thanks Plunkett for your reply.

Yes, i have used mod_jk and it worked as expected.

Thanks,
Sandeep Kumar S
 
Another vote for mod_jk. Easy to set up and works great. Plus, the jkmanager page that comes with it gives great monitoring and control over what the load balancing is doing.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top