users@glassfish.java.net

Glassfish 2.1.1-b20 session replication

From: <glassfish_at_javadesktop.org>
Date: Fri, 24 Jul 2009 06:31:09 PDT

Hi, I have a 3 node cluster with in-memory session replication working:

Node A, Node B and Node C:
A stores its backup for session data on node B
B on C
C on A.

I was running some tests and found the following scenarios:

[b]first scenario[/b]:
 1.1. user is accessing an application through node A
 1.2. node A goes down!
 1.3. load balancer redirects the user to node [b]C[/b]
 1.4. node C obtains the session from node B
 1.5. user continues to use the application through node C
 1.6. node C goes down!
 1.7. load balancer redirects the user to node B
 1.8. user continues to use the application through node B

[b]second scenario[/b]:
 2.1. user is accessing an application through node A
 2.2. node A goes down!
 2.3. load balancer redirects the user to node [b]B[/b]
 2.4. node B already has user session data.
 2.5. user continues to use the application through node B
 2.6. node B goes down!
 2.7. load balancer redirects the user to node C
 2.8. user lose its session!


Questions:

About [b]second[/b] scenario:
Q1: When node B goes down and user is redirected to node C the session is lost, is it expected?

About [b]both[/b] scenarios:
Q2: When node A goes down does node B's copy of user session becomes the "master copy"? If so, does node B automatically creates/sends a backup copy on/to node C?

Thank you.

glassfish version: 2.1.1-b20
[Message sent by forum member 'galmeida' (galmeida)]

http://forums.java.net/jive/thread.jspa?messageID=357424