Which version of tomcat do you use ?
Do you use mod_jserv or mod_jk ?

There are two 2 different implementations
of loadbalacing (at least from the configuration site)

One came to tomcat from mod_jserv.
It is described at
  http://java.apache.org/jserv/howto.load-balancing.html

The other is new and comes with mod_jk.
It is described at 
 
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/Tomcat-Workers-H
owTo.html


The theory (of the jserv version) so far:

In case of load balancing jserv appends an identifier to 
the session id which identifies the server that received 
the first request for the session. The identifier is used 
to send each following request for the same session to 
the same machine.

So to use load balancing you either have to enable 
cookies in your browser or to call response.encodeUrl()
for the internal links in your page.

If it fails for you, the first thing to look at is the 
session id. The session id should look like:
To1028mC5487727979769673At.JS1

Where JS1 is the symbolic name of your server 
(First argument to ApJServHost)

I don't know if this applies to mod_jk.

> -----Urspr�ngliche Nachricht-----
> Von: Manne Anliot [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 2. November 2000 13:15
> An: '[EMAIL PROTECTED]'
> Betreff: loadbalancing + sessions
> Loadbalancing works fine, except for no sticky sessions (� la get-/set
> properties in my JSP:s).
<snip/> 
> How is the load balancing supposed to work anyway? By 
> spreading the users between the servers, and let them 
> stay on their resp. server, or by load balancing all 
> users on all servers (sending/recieving session 
> information between the servers)?
<snip/>

Reply via email to