5 Replies Latest reply on Mar 7, 2014 10:07 AM by jfclere

    Improving request distribution for stateless applications.

    edwinb1

      Greetings!

       

      I'd like some guidance on setting a configuration to increase request distribution across all available workers a per domain/lbgroup basis, especially for stateless applications, to arrive at something close to a round-robin policy. The two main configuration points I have so far are 1) installing a static load-factor provider and 2) setting 'stickySession' to false.

       

      My current environment uses "mod_cluster 1.2.0.Final" and "Tomcat 6.x", also I noticed https://issues.jboss.org/browse/MODCLUSTER-178 is still open and was curious about its status.

       

      Are there any other options I can use?

       

       

      Many thanks!

      Edwin

        • 1. Re: Improving request distribution for stateless applications.
          jfclere

          So you cluster nodes are grouped in domains?

          • 2. Re: Improving request distribution for stateless applications.
            edwinb1

            Yes, my environment hosts various applications, with each under a distinct LBGroup and several available nodes. Some applications/LBGroups are stateful and are configured with session stickiness and a variable load-factor setting, but the few that are stateless can really benefit from a more random request distribution across available nodes.

             

            My initial testing against a simple test application after 10K requests seems to demonstrate a fairly well balanced outcome, but I wanted to confirm that LBGroup boundaries are preserved in light of MODCLUSTER-178. I've not yet seen any problematic requests but I've only just begun testing this.

             

            Thank you.

            • 3. Re: Improving request distribution for stateless applications.
              jfclere

              The stickiness of sessions is defined in the balancer so it can't be changed at the webapp level.

              The rule for fail-over is to fail-over to a node of the same domain and then to another domain.

              MODCLUSTER-178 has been implemented for the moment.

              1 of 1 people found this helpful
              • 4. Re: Improving request distribution for stateless applications.
                edwinb1

                If I set the Balancer property for each of my webapps to a distinct value, in addition to LBGroup and JVMRoute, can that work or would I have to setup another mod_cluster instance to host stateless webapps?


                If I can avoid changing session stickiness and simply install a static load-factor provider for stateless webapps, would that yield a random reqeust distribution?


                • 5. Re: Improving request distribution for stateless applications.
                  jfclere

                  Changing the balancer property either creates a new balancer or update an existing one so that won't help, if you group the stateless webapps on some nodes having another mod_cluster instance for those nodes could make sense (another balancer too also in that case). The stickiness is on node not on applications so you have to separe sticky webapp and stateless ones.