jk_mount/loadbalancing works well for this kind of thing.  We use it
loadbalancing across multiple servers, with multiple JVMs on each server.

The only issue we had was in the way our (Foundry) loadbalancer handled
things:

We needed session state preserved by cookie or sessionid, and it proved
'difficult' to make the loadbalancer work in this way with the default
tomcat session state stuff, ie.
cookie name = JSESSIONID
or
http://blah.com/blah/blah;jsessionid=BBBBBB.ident

Problem is the loadbalancer pattern matching used to preserve sessions by
URL couldn't do matching for cases like:
http://blah.com/blah/blah;jsessionid=*.worker
where the pattern to be matched is the ;jsessionid=*.worker

Cookie matching wasn't much better either, so we resorted to adding an extra
cookie in our application that was purely for use by the loadbalancer to
send the request to the right machine.

What we resorted to was rebuilding tomcat changing the name of 'jsessionid'
to something that identified the node so the loadbalancer knew where to send
it.

Works fine, if a bit messy due to hardware limitations.

Paul

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 2:16 AM
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
________________________________________________


Reply via email to