2 Replies Latest reply on Feb 23, 2010 3:06 PM by Brian Stansberry

    Multiple JBoss clusters and mod_jk

    siddharth chhabra Newbie

      HI

      We are using JBoss 4.0.3SP1 and clustering 9 JBoss instances into 3 clusters of 3 instances each.

      For each cluster we have a separate apache wihch talks to the 3 instances in the cluster.

      In front of these 3 apaches is a H/W loadbalanacer.

      Sticky sessions are turned on in apache and the H/W load balancer.

      We are using the -b switch to run multiple jboss on a single machine and each machine has 3 instances 1 from each cluster.

      Things are working fine in our tests.

       

      However the problem we are running into is that when a particular cluster goes down, the apache for that cluster is still up and due to sticky session the request from a user who was on that cluster continues to go there and we get a 503 despite the other 2 clusters being up.

      Now we know that state cannot be replicated across clusters so we are not looking for session state to be replicated in this scenario, but it would nice if apache mod_jk could figure out that the cluster is down and pass that information  on to the H/W loadbalance which in turn would hit another apache talking to a cluster which is still up.

      Does anybody have a simliar setup and has done something to prevent this issue?

      (We could run a 9 instance cluster on our network, but don't know about if there are any performance implications with that many instances in a cluster. Which of the 2 cluster configurations will give us the best performance?)

      Does anybody see any red flags with our setup?

       

      Any help will be appreciated.

      Thanks