You can use mod_jk to load balance between different JVMs running Tomcat.
Works well, we use it.

The JVMs could then also be on remote machines to either each other, and/or
the machine running Apache.

mod_jk will preserve sessions for you so that subsequent request go to the
right JVM.

You'll need to configure the workers.properties, etc. to use the
'loadbalancer' worker.

Paul

-----Original Message-----
From: George Shafik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 3:40 PM
To: [EMAIL PROTECTED]
Subject: Redirection and Load Balancing


Hi All,

Current System Architecture
Apache : 3.17 (Custom Build)
Tomcat : 3.2.2 (Custom Build)
Deployment : war files.
Platform : Red Hat Linux 6.2

We are after a method to redirect based on a limit on the number of page
hits or the load on the current Web Server.

The redirection needs to be performed by Apache or Tomcat not by the web
page itself. Currently we are redirecting the user to another Web Server
from the current page as the page hits reach a certain limit or the load is
too much on the current box. A better way to conduct this is to redirect the
call to another Web Server at the Web Server or Servlet Engine level, in our
case that's Apache or Tomcat. Its not clear to us where in Apache or Tomcat
we can configure things based on page hits or load if its possible to do at
all.

Many thanks in advance for any help in this area.

Regards,
George Shafik




Reply via email to