4 Replies Latest reply on Feb 6, 2003 12:01 PM by slaboure

    Cannot get SLSB to RoundRobin

    gsanil

      I am using jboss3.0.6 and have 2 instances of jboss running on my laptop ( XP ) in a cluster. When I run a jUnit test client from intelliJ all the requests go to one machine only.

      Can anyone help me diagnose this issue?

      Thanks a lot.

        • 1. Re: Cannot get SLSB to RoundRobin
          gsanil

          Here's what I am seeing. When I put the SLSB call in a loop for 10 times, it round robins fine. But when I run one call and rerun the test case it does not round robin. Can someone explain this?

          Thanks.

          • 2. Re: Cannot get SLSB to RoundRobin
            slaboure

            Yes, in 3.0, when you get a home, the "cursor" that is used to iterate through the targets is re-initialized to the same target, which is why you end up always using the same node. This behaviour is "by design" in 3.0 but has been "fixed" ;) in 3.2 and head. In these versions, the "cursors" are shared between all home/remote for the same target bean.

            Cheers, sacha

            • 3. Re: Cannot get SLSB to RoundRobin
              gsanil

              Thanks a lot.

              How stable is 3.2?

              We are going live in very soon, can we move to 3.2 and expect stability.

              Thanks a lot.

              • 4. Re: Cannot get SLSB to RoundRobin
                slaboure

                I wouldn't go in production with a 3.2 beta release, but that's just me. 3.0 is fine and will load-balance if you don't refresh your home for each call (which is a good optimisation as well)

                mahna