Tomcat Clustering and Load Balancing

clusterload balancingtomcat

I have 3 tomcat servers where users get into all time. They are 3 because the processing of each request is heavy (lot of sql). Users enters to server 1 or 2 or 3. Now I want to make them "one". I know I need do clustering but, will clustering spread the requests thru the 3 servers or here is where I need implement load balancing with apache2 ?

Best Answer

You can use mod _ jk http://tomcat.apache.org/connectors-doc/

Remember to set sticky _ session on the mod _ jk and tomcat connector