Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-1956

[AMQ 7, CORE protocol ] Ordered Round Robin ConnectionLoadBalancingPolicy

    XMLWordPrintable

Details

    • Story
    • Resolution: Done
    • Major
    • None
    • AMQ 7.2.0.GA
    • core-protocol

    Description

      Can we have a ConnectionLoadBalancingPolicy which will start at the first connection defined in the initialConnection list and subsequently Round Robin around the list of connection urls in the ORDER they are defined.

      Context:

      In a scenario where:

      • all the connection urls are known in advance,
      • using multiple instances of org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory. For example using 4 separate connection factories with a broker cluster of 2 live brokers.

      For “RoundRobinConnectionLoadBalancingPolicy" and “RandomConnectionLoadBalancingPolicy" they both start from a random point in the list. But the “random” choice could be unfavourable and clump the connections on one broker.

      The “FirstElementConnectionLoadBalancingPolicy” it seems to always return the first connection in the list.

      In Openwire there was an option of trying a list of urls in order (starting from the first). If there was a known fixed set of clients, you could change the order of urls on different clients to spread the load.

      Attachments

        Issue Links

          Activity

            People

              dbruscin Domenico Francesco Bruscino
              rhn-support-pfox Patrick Fox (Inactive)
              Dominik Lenosi Dominik Lenosi
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: