You might want to look at the loadbalancer module as supplied
with tomcat.
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/Tomcat-Workers-HowTo.html
Quote:
lb Worker properties
The load-balancing worker does not really communicate with Tomcat
workers; instead it is responsible for the management of several "real"
workers. This management includes:
* Instantiating the workers in the web server.
* Using the worker's load-balancing factor, perform
weighed-round-robin load balancing where high lbfactor means stronger
machine (that is going to handle more requests)
* Keeping requests belonging to the same session executing on the
same Tomcat worker.
* Identifying failed Tomcat workers, suspending requests to them and
instead fall-backing on other workers managed by the lb worker.
The overall result is that workers managed by the same lb worker are
load-balanced (based on their lbfactor and current user session) and
also fall-backed so a single Tomcat process death will not "kill" the
entire site.
David
Wouter Boers wrote:
>
> I think that what you want is not part of tomcat nor will it be. What
> you
> require is a load blancer (or a machine that acts as a load balancer but
> I
> don't know of any open source initiative on this). The loadbalancer
> keeps
> track of session data will forward each request from one and the same
> browser (not ip address but browser) to the same machine untill the
> users
> session expires. I have had good epiriences with the Radware WSD Pro,
> hard
> to install an configure but once up, works like a charm. But it really
> depend on your butget if you can spare some for a load balancer.
>
> Wouter
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 23 July 2001 11:16
> To: [EMAIL PROTECTED]
> Subject: Load Balancing for WEB-Application with sessions
>
> Hi,
>
> For improving the performace, we are going to serve requests with many
> computers. Here, a problem with redirection arises. As a rule, the
> requests
> are randomly redirected to the existent servers, and it functions well
> for
> undependent pages and servlets. We have to ensure that a hole session is
> processed on (redirected to) the same server. Are there possibilities to
> do
> it in Tomcat, or we have to write a redirector-servlet ourselves, to
> control the redirections according to the session.
>
> Mit freundlichen Gr��en
>
> Christian Schildt
> Diplom-Betriebswirt (FH)
>
> Softwaredeveloper
>
> Phone: 089/89013023
> Mailto: [EMAIL PROTECTED]
> ________________________________________________
> ELAXY AG
> Gutenbergstr. 5
> D-82178 Puchheim bei M�nchen
> Phone: +089/8901300
> Fax: +089/89013089
> www.elaxy.com
> ________________________________________________
