9 Replies Latest reply on Apr 26, 2004 8:24 AM by hernant

    jboss clustering test

      Hi all, I´m trying to test if my application is running on cluster or not. I have 2 computers in cluster. If I destoy the bean it goes to the other node and get it, but if I request it from many clients at the same time (I have a stress tool) it always respond from the 1st node. It is not doing the load balancing. In my jboss.xml I have no special configuration, only the clustered tag:

      <ejb-name>Dyt_sta_period_lack_Ayuda</ejb-name>
      <jndi-name>Dyt_sta_period_lack_AyudaBean</jndi-name>
      <local-jndi-name>Dyt_sta_period_lack_AyudaLocal</local-jndi-name>
      true


      What I´m missing?

      Regards,
      Hernán.

        • 1. Re: jboss clustering test
          darranl

          What load balancing policy have you configured?

          • 2. Re: jboss clustering test

            I have not configured any particular policy. As far as I know it should be using de default cluster configuration. Isn't it?

            • 3. Re: jboss clustering test
              shiva0

              Is your stress tool caching the reference to the Remote object?

              From what I've understood from the JNDI balancer, you have to re-request the Home for each request if you want to enable the load-balancing.

              • 4. Re: jboss clustering test

                I'm testing within a web application. It is not caching the reference.
                Also, it is not balancing the http requests. I put the tag in my web.xml

                The war (web application) and jar (ejbs) are deployed together into an ear. Can be this the problem that it is always getting the local reference?

                • 5. Re: jboss clustering test

                  If you do not cache the remote/local then each time you get a new one, it will send the request to the same server. Keep the remote/local and re-use it and you should see round-robin if your EJB deployment is configured properly for clustering.

                  • 6. Re: jboss clustering test

                    Sorry, but: how should I keep the remote/local and reuse it?

                    • 7. Re: jboss clustering test
                      slaboure

                      What are you trying to achieve? how many nodes? are the web and EJB layers deployed in the same JVM or not? are you trying to load-balance HTTP requests or EJB invocations? which jboss config are you using? default/all? how is your jboss.xml (your first post is not complete), etc.

                      • 8. Re: jboss clustering test
                        slaboure

                        ... and which version of JBoss...

                        • 9. Re: jboss clustering test

                          At least, I get it works :) (I'm so happy!!!)
                          What I do not understood is that jboss do not handle the http's load balance...
                          I put Apache 2.0 over JBoss (3.2.3 version) with the mod_jk2 module.
                          Now I have, the ejb's load balancing within jboss and the http session load balanced with apache.

                          Are you planning to include the http's load balancing in future versions?

                          Sacha: can I write to your personal address? I want to talk about the development of jboss in my country...