6 Replies Latest reply on Apr 20, 2012 12:59 PM by earnest.dyke

    Load Balancing on JBoss 7.1.0 Final

    flanzer

      Hi,

       

      Can anyone please tell me if I can do load balancing on JBoss 7.1.0 Final version and how to do that.

      Apology if this sound stupid but i could not find a proper guide explaining how to do the load balancing and what are the pros and cons for the above JBoss version.

       

      Thanks in advance.

       


        • 1. Re: Load Balancing on JBoss 7.1.0 Final
          wdfink

          Hi,

          what kind of LB do you mean?

          EJB remote call or HTTP?

          • 2. Re: Load Balancing on JBoss 7.1.0 Final
            earnest.dyke

            Are you planning to run your servers in standalone or domain mode?

             

            I am trying to determine how I would use an F5 to load balance in a domain. All of the doc I have been able to find references putting an Apache server(s) in front of JBoss and using mod_cluster to load balance. We already have F5s that we use for load balancing and I would like to know if they are a practical solution to load balancing in a domain.

             

            Earnie!

            • 3. Re: Load Balancing on JBoss 7.1.0 Final
              wdfink

              Loadbalancing is not related to domain or standalone mode, such mode is just a JBoss administrative domain.

              It has nothing to do with clustering.

              So it is no difference for domain/standalone

              • 4. Re: Load Balancing on JBoss 7.1.0 Final
                ctomc

                Hi,

                 

                how to configure load balancing for different hardware load balancers is more of a question for those load balancers and their documentation.

                 

                But basic rule aplies that jboss (now talking just about web) exposes web trough http(s) and ajp protocol, so if your load balancer supports any of them (http is supported by most) you can use your balancer to balance to jboss.

                Then how sticky sessions and other little things are configured is specific on how your balancer works.

                usualy to make things work for proxying requests is to property configure proxy-name setting on connector and that should be it.

                 

                 

                --

                tomaz

                • 5. Re: Load Balancing on JBoss 7.1.0 Final
                  earnest.dyke

                  Thanks for the replies. I guess my confusion comes in from looking at this document https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto It shows that the Master is running mod_cluster and is the load balancer for the two instances of JBoss. From the replies above, can I assume that I could just as easily, and correctly, but my F5 out front of these two servers and have it perform load balancing?

                   

                  Earnie!

                  • 6. Re: Load Balancing on JBoss 7.1.0 Final
                    earnest.dyke

                    The last sentence should read "these two instances" not "these two servers".

                     

                    Earnie!