users@glassfish.java.net

Load Balancer routing not sticky on SJSWS

From: pgribben <p.gribben_at_fortent.com>
Date: Mon, 30 Nov 2009 08:50:24 -0800 (PST)

Hi,

I've got SJSWS load balancing requests to a web-app on a Glassfish 2.1
cluster (consisting of 2 instances). The app consists of a servlet that
replies with the request.getServerName(), request.getServerPort() and the
servletContext's computed realPath(".") value. I would expect successive
calls from the same browser window to 'land' on the same GF instance, but
infact am finding that instead the requests land alternately on each
instance (i.e. round-robin). I've checked the HTTP request headers and in
every case the same JSESSIONID value is in use.

I also tried changing the policy in loadbalancer.xml from round-robin to
weighted-round-robin but the behaviour is unchanged.

Any help would be greatly appreciated,

Thanks
-- 
View this message in context: http://old.nabble.com/Load-Balancer-routing-not-sticky-on-SJSWS-tp26577386p26577386.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.