----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Michael Amster wrote:
>
> Jean-Luc:
>
> I solved my problem because my application was not using
> req.getSession(true), so jserv was not creating the cookie. I did not know
> that you had to tell jserv to use sessions explicitly.
That's not JServ. Thats the spec.
> My own application
> has its own sessioning that is independent of jserv. We will be moving
> over to support jserv later.
If you want to use load-balanced sessions WITH sessions redirected to
the right JServ you need to set JServ's sessions.
you can still use your own session id, but you must also set the
session.
>
> I have been using the balance protocol. The jserv.conf file looks like
> this on both the apaches:
>
> ApJServMount /servlet balance://set1/eparties
>
> ApJServBalance set1 app1 6
> ApJServBalance set1 app2 6
> ApJServBalance set1 db2a 8
> ApJServBalance set1 db2b 8
>
> ApJServHost app1 ajpv12://app1.eparties.com:8007
> ApJServHost app2 ajpv12://app2.eparties.com:8007
> ApJServHost db2a ajpv12://db2.eparties.com:8007
> ApJServHost db2b ajpv12://db2.eparties.com:8008
>
> ApJServRoute JS1 app1
> ApJServRoute JS2 app2
> ApJServRoute JS3 db2a
> ApJServRoute JS4 db2b
>
> ApJServShmFile logs/jserv_shm
>
> Should we change the config on each machine? Or does this look ok?
>
> -MA
2 remarks :
> ApJServBalance set1 app1 6
> ApJServBalance set1 app2 6
> ApJServBalance set1 db2a 8
> ApJServBalance set1 db2b 8
would be better like this (same relative weights):
ApJServBalance set1 app1 3
ApJServBalance set1 app2 3
ApJServBalance set1 db2a 4
ApJServBalance set1 db2b 4
as stated in the load-balancing doc.
You need, in order to get the load properly distributed, have around
(3+3+4+4)*n child processes for Apache (MinSpareServers & StartServers),
with n >= 5.
Remember that a new session is created for each zone (not overlapping
the other sessions in other zones).
Jean-Luc
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]