Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Glassfish (3.1.2) cluster over 2 computers as nodes, with a mod_jk load balancer.

Are servlet instance variables replicated perfectly? If not, how do I make sure it is?

Are all actions, including method calls and disk writes, replicated perfectly? If not, how do I make sure they are?

These may seem like stupid questions, but I'm not seeking "load balancing" as much as I am seeking exact replication to enable future upgrading without any service interruption. How do I achieve this if it is not already the case?

share|improve this question
up vote 1 down vote accepted

What is replicated is session state. Method calls and disk writes, definitely not. The user has a session with one member of the cluster, and that continues until it fails, in which case another cluster member takes over the session in the same state. It is assumed you are using a common, maybe clustered, database, LDAP, etc. The cluster members do not work in lockstep.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.