×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Load Balancing between Tomcat servers config in httpd.conf

Load Balancing between Tomcat servers config in httpd.conf

Load Balancing between Tomcat servers config in httpd.conf

(OP)
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 http://sandeep1.enterprisenet.org:8080 route=1
BalancerMember http://sandeep2.enterprisenet.org:8080 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 http://sandeep3.enterprisenet.org:8080 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
Replies continue below

Recommended for you

RE: Load Balancing between Tomcat servers config in httpd.conf

mod_jk offers a more elegant solution to this.

RE: Load Balancing between Tomcat servers config in httpd.conf

(OP)
Thanks Plunkett for your reply.

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

Thanks,
Sandeep Kumar S

RE: Load Balancing between Tomcat servers config in httpd.conf

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.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close