Skip to main content

Enterprise Java Community: Load-balancing Tomcat with Apache

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

Related Lists

Bookmark History

Saved by 10 people (-2 private), first by anonymouse user on 2008-02-27


Public Sticky notes

ProxyPass /apache-load-balancing-1.0 balancer://mycluster stickysession=JSESSIONID <Proxy balancer://mycluster> BalancerMember ajp://tomcat1:8009/apache-load-balancing-1.0 route=tomcat1 loadfactor=50 BalancerMember ajp://tomcat2:8009/apache-load-balancing-1.0 route=tomcat2 loadfactor=50 </Proxy>

Highlighted by pierre-yves

Safe removal of a server node When an application server (real worker) has to be taken offline for maintenance, set a very low load factor for the server due to be taken offline. Few new users will be served by that server. All existing users ‘sticking’ to this real worker will continue to be processed by this real worker. This will help reduce the number of users who will have to login again when the real worker is taken offline.After some time, the real worker is disabled and taken offline. Once it is ready to come online, the worker is enabled again in balancer manager.

Highlighted by pierre-yves