Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.