Look into the mod_jserv package. Look under the JServ project for a paper
"Load Balancing HOWTO" and read it carefully. It's wonderfully written. All
though it's pointed towards the balancing for JServ, the same code has been
more or less hacked into Tomcat, and we run it in production presently.
It's pretty murky - look up mod_jserv in the FAQs afterwards.
[Be aware the core Tomcat developers don't seem to give a flying you know
what about mod_jserv's load balancing code - they seem to be mostly people
in hobby environments. There is a small but vocal minority amongst them who
run Tomcat in a load balanced environment on a production site, and we try
to remind them from time to time.]
Andrew
--
Andrew Frederick Cowie
Director of Operations
Upoc, Inc
cell: 917-217-4578 office: 212-405-1044
[EMAIL PROTECTED]
> -----Original Message-----
> From: Aumann, Shad [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 29, 2000 2:45 PM
> To: TomcatUser Mailing List (E-mail)
> Subject: Distributed session tracking?
>
>
> Hello,
>
> If I wanted to run multiple web servers - each running
> Apache/Tomcat - in a
> load-balancing configuration, how can I make it so that the
> session tracking
> on each installation of Tomcat is available to whatever web
> server gets the
> client's request?
>
> I realize that I could just do "first hit" load balancing,
> and then keep the
> client on the same web server that they started with.
>
> But, I'd rather have a web server "farm", and be able to send
> the requests
> to the server with the lowest load.
>
> Does Apache/Tomcat have any provisions for automatically
> supporting this
> kind of distributed session tracking?
>
> I'm about to implement it myself, using the RDBMS as the
> location of all of
> the shared session information for each of the web servers to
> utilize. Does
> anyone have a better idea?
>
> Shad
>
> --
> Shad J. Aumann
> Senior Software Engineer
> Anteon
> [EMAIL PROTECTED]
>