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

Add <local-bind-address> with default to broadcast-group

    XMLWordPrintable

Details

    • Story
    • Resolution: Unresolved
    • Minor
    • None
    • AMQ 7.1.0.GA
    • clustering
    • None

    Description

      The broadcast group as configured in 7.1.0-GA binds to the first NIC (eth0) of the system.
      Would be nice if an <local-bind-address> was added to the broadcast-group / cluster configuration equal to the host you bind the acceptor on.

      I have a machine with multiple NIC / networks and I am binding the installation to the second NIC (eth1) / network. But as current default configured this version binds for the cluster to the first NIC (eth0).

      I created a golden-image with the addition of etc/org/apache/activemq/artemis/cli/commands/etc/cluster-settings.txt:

      <broadcast-groups>
               <broadcast-group name="bg-group1">
                  <!-- bind to the same network / nic as the acceptor -->
                  <local-bind-address>${host}</local-bind-address>
                  <group-address>231.7.7.7</group-address>
                  <group-port>9876</group-port>
                  <broadcast-period>5000</broadcast-period>
                  <connector-ref>artemis</connector-ref>
               </broadcast-group>
            </broadcast-groups>
      
            <discovery-groups>
               <discovery-group name="dg-group1">
                  <!-- bind to the same network / nic as the acceptor -->
                  <local-bind-address>${host}</local-bind-address>
                  <group-address>231.7.7.7</group-address>
                  <group-port>9876</group-port>
                  <refresh-timeout>10000</refresh-timeout>
               </discovery-group>
            </discovery-groups>
      <cluster-connections>
               <cluster-connection name="my-cluster">
                  <address>jms</address>
                  <connector-ref>artemis</connector-ref>
                  <message-load-balancing>${message-load-balancing}</message-load-balancing>
                  <max-hops>${max-hops}</max-hops>
                  <discovery-group-ref discovery-group-name="dg-group1"/>
               </cluster-connection>
            </cluster-connections>
      

      and now the brokers can find each other.

      Attachments

        Activity

          People

            rh-ee-ataylor Andy Taylor
            hdaems@redhat.com Huub Daems
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: