Hi,

Is anyone successful with mod_jserv load balancing with stickyness when 
cookies disabled?

I am running Tomcat 3.2.1 and apache 1.3.12 with mod_jserv on sun solaris 2.6

I have configured apache for load balancing between 2 unix servers and it
is working fine when cookies are enabled. The requests are load balanced 
between
the 2 servers and session stickyness works fine (once the session is 
established
the request is always routed to the right app server based on the suffix in 
the jsessionid).

But when the cookies are disabled (I am encoding encoding the url) the 
requests are
distributed between server1 and server2 meaning doesn't stick to the same 
app server.
When there is a request from the browser (and the URL has the 
jsessionid.suffix) the
mod_jserv doesn't route it to the right app server based on the suffix in 
the jsessionid
and the session is lost (a new session id is created).

Here is the configuration I have in httpd.conf

<IfModule mod_jserv.c>
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy off
ApJServLogLevel notice
ApJServShmFile /apache/conf/jserv_shm
ApJServLogFile /apache/logs/jserv_log.log

ApJServBalance loadbalancer CCSF1
ApJServBalance loadbalancer CCSF2

ApJServHost CCSF1 ajpv12://server1:port1
ApJServHost CCSF2 ajpv12://server2:port2

ApJServRoute CCSF1 CCSF1
ApJServRoute CCSF2 CCSF2

ApJServMount /myapp/servlet balance://loadbalancer/myapp

</IfModule>


Any help is highly appreciated

-Shanti

Reply via email to