[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [jetty-users] Jetty session cluster session attribute
- From: Jan Bartel <janb@xxxxxxxxxxx>
- Date: Fri, 29 Jun 2012 16:26:33 +0200
- Delivered-to: email@example.com
The database is updated as info in the session object changes.
Although, we do do a few optimizations to limit the amount of updating
that occurs, to prevent hammering the database. When a session is
in-use on a node it is in-memory, and the database updated when the
session changes. When the session migrates to a new node, the session
is (re-)read into memory from the database. If you are seeing
inconsistencies, the only scenario I can foresee is if your session is
bouncing around a lot between nodes, rather than using
On 8 June 2012 19:52, nndd <sarahmao@xxxxxxxxx> wrote:
> Hi there,
> I am following the following document to configure jetty session cluster:
> And use Apache httpd as the load balancer.
> One thing is confusing me is: session attribute is persisted to the
> database, then shouldn't all the cluster nodes read the same session
> attribute? In my set up, this is not the case. Each cluster node maintain
> its own session attribute. That says the session attribute is consistent on
> every node, but not across nodes. Another thing I noticed is that the last
> node and other relevant columns of the persisted session attribute are only
> updated in database when one of the two nodes handled the request. The
> information of another nodes seems to be stored in memory?
> Both of the nodes hold the same session ID, although different session
> Is this expected behavior or my configuration is wrong? If configuration is
> wrong, where can I find more documentation about the config?
> Thanks a lot,
> View this message in context: http://jetty.4.n6.nabble.com/Jetty-session-cluster-session-attribute-tp4958607.html
> Sent from the Jetty User mailing list archive at Nabble.com.
> jetty-users mailing list
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com – Developer advice, services and support
from the Jetty & CometD experts.