1 Reply Latest reply on Jan 11, 2008 12:49 PM by brian.stansberry

    Active/Passive Cluster

    chuaky

      hi,

      I got JBOSS web portal running on 2 separate servers and would like to cluster them in a active and passive failover configuration.

      In other words, user would use a "virtual IP" (VIP) to access the JBOSS web portal. Initially the VIP could be hold by server #1. If server #1 fails, then server #2 would take up the VIP and all web traffic would be directed to server #2.

      Does JBOSS Cluster support this mode?
      Or have to use the expensive windows server clustering?

      Thanks.

        • 1. Re: Active/Passive Cluster
          brian.stansberry

          This is essentially a function of your load balancer. If the JBoss AS instances are clustered and the webapps are marked distributable, then your sessions will be replicated and will be available on either node.

          What makes it active/passive is the fact that your load balancer sends all the requests to server A unless it's not available. This can be configured easily if you are using mod_jk as your load balance; in workers.properties, you mark on worker as "disabled" and the other as not.

          worker.node1.disabled=true
          .....
          worker.node2.disabled=false
          


          A disabled worker will not receive requests except for:

          1) If no non-disabled workers are available (i.e. active/passive)
          2) OR a sticky session is associated with the worker (i.e. if you disable a worker that was enabled, it will continue to handle its existing sessions until they bleed off. This allows you quiesce a running server before shutting it down.)

          Obviously, if you start node1 with disabled=true, it will have no existing sessions, so only #1 applies.