Closed GoogleCodeExporter closed 9 years ago
The issue is caused by step 4, where the LB does not dispatch the request to
the last node it sent the client. This is just wrong. A reason might be that
the session id changed (jvm-route) when the other tomcat took over the request,
and that the LB is not aware of the jvm-route / does not strip it off. What LB
is it btw?
Btw, in the case you haven't found it - the mailing list is here:
http://groups.google.com/group/memcached-session-manager
Original comment by martin.grotzke
on 15 Sep 2011 at 9:17
LB is haproxy.
I guess that haproxy will store the first server in its'memory,then when the
first server starts up again ,the request will be taken over by the first
server again.
is it correct?
Original comment by ydfa...@hotmail.com
on 16 Sep 2011 at 1:14
I can't tell, you should clarify this on the haproxy list.
You should also check the HTTP request/response headers for each check.
Also the question is how you have configured stickyness.
If you're using appsession you must ensure that only the relevant part of the
JSESSIONID is used, and neither jvmRoute nore msm node-id are taken into
account. Assume you have a JSESSIONID "123456-n1.app01"
(<sessionId>-<nodeId>.<jvmRoute>) only the first part ("123456") must be
checked by haproxy (e.g. by specifying appsession JSESSIONID len 6), as
otherwise haproxy would loose track on memcached failover or tomcat failover.
See http://code.google.com/p/haproxy-docs/wiki/appsession for more.
Alternatively you can use the cookie based approach (cookie SERVERID insert
...): http://code.google.com/p/haproxy-docs/wiki/cookie
You should clarify on the haproxy list which approach is the best and what's
exactly the problem, as I'm no haproxy expert (only played with it).
Still, I'd be interested what the actual problem here is / was, so it would be
nice if you could share your findings on the mailing list then:
http://groups.google.com/group/memcached-session-manager
Original comment by martin.grotzke
on 16 Sep 2011 at 7:04
OK,thanks
Original comment by ydfa...@hotmail.com
on 16 Sep 2011 at 8:41
Original comment by martin.grotzke
on 26 Sep 2011 at 10:13
Original issue reported on code.google.com by
ydfa...@hotmail.com
on 15 Sep 2011 at 2:06