Hi Mathias,
I've been playing around a fair amount with the loadbalancing code in mod_jk.
You might want to read through the jakarta-tomcat/src/native/jk/jk_lb_worker.c file to get a feeling for how it works.
As far as I can tell is that it works like this:
You start up multiple tomcats. They have no clue yet about jvm routes. Then you start up apache, which starts up mod_jk, which reads the workers.properties files, and then assigns the workers in there their jvm route. Now, if a request comes in with a JSESSIONID cookie, or something encoded in the URL, which contains a jvm route, the request is then transferred to the tomcat with that jvm route. This is called sticky sessions. If that tomcat is down, it is then round-robin'ed to a next tomcat.
I don't think there is any loadbalancing specific stuff in tomcat, apart from the jvm route.
I do not know about the performance impact.
Any further questions, please ask.
Jord.
-----Original Message-----
From: Mathias Herberts [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 5:56 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.1 load balancing with mod_jk
Hi,
I've been lurking around the mod_jk and Tomcat 3.2.1 source tree looking
for the load balancing related code.
I've seen that the load balancing possibilities of Apache JServ were
transfered into Tomcat but saw no example of their use.
I did put together a very simplistic Interceptor which sets the JvmRoute
in the request, it seems to work but I would be interested in feedbacks
from other people having tried that out.
Any hints on performance could also be of good help.
My simplistic code is available on demand.
Best regards,
Mathias.
--
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. Tout
message etant susceptible d'alteration, l'emetteur decline toute
responsabilite au titre de ce message s'il a ete altere, deforme ou
falsifie.
-----------------------------------
This message and any attachments (the "message") are confidential and
intended solely for the addressees. Any unauthorised use or
dissemination is prohibited. As e-mails are susceptible to alteration,
the issuer shall not be liable for the message if altered, changed
or falsified.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
