Tomcat – Load Balancing two Apache Tomcat WebServices

load balancingtomcat

I am using two apache tomcat servers on two windows 7 machines and want to load balance the requests for those servers through a load balancer. I am not that experienced in building up such networks but want to give it a try. Actually I just have two real computers. So is there a way to run the load balancer in a virtual machine or something?

Best Answer

It's useful to run a load balancer that can implement "sticky sessions" by sending repeated requests from the same user to the same server. Basically it has to recognize the JSESSIONID cookie as a session cookie.

I do load balancing using mod_ajp with the Apache httpd web server. You can run this on linux or windows. (I have a Linux front web server that load balances among various Linux and Windows app servers).

Related Topic