Tomcat sessions and load balancing

2000-12-06 Thread Bohm, Matt

 I am a programmer in an environment that features load balancing on 3
 production machines. Typically, requests to a given URL will be routed to
 any of the three machines, depending on which is the least busy. Can
 Tomcat session management work correctly in this environment? In other
 words, will requests associated with a given session always return to the
 machine where the session originated?
 
 Matt



Re: Tomcat sessions and load balancing

2000-12-06 Thread Paul Frieden

I take your message to mean that you have an external load balancing
device.  We're doing the same thing. We're using mod_jk, and the lbworker.
You'll need to define all your servers in workers.properties. We set the
weight much higher on the local server because we have IP based sticky
session in our load balancers and they normally get it right.

The documentation covers how to do the configuration, but doesn't actually
explain how the lbworker can be used in an external load balanced
configuration.  Has it been added in the new documentation waiting in CVS?
If not, I'd be willing to write up a section on it.  Anybody interested?

Paul Frieden

 On Wed, 6 Dec 2000, Bohm, Matt wrote:

  I am a programmer in an environment that features load balancing on 3
  production machines. Typically, requests to a given URL will be routed to
  any of the three machines, depending on which is the least busy. Can
  Tomcat session management work correctly in this environment? In other
  words, will requests associated with a given session always return to the
  machine where the session originated?
  
  Matt