Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3640

external clients cannot use cluster topology for HA or load balancing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.29.0
    • None
    • None

    Description

      Let's say there is a simple Artemis HA master/slave shared storage cluster with such configuration:

       

      <connectors>
         <connector name="artemis-master">tcp://internal-cluster-dns-1:61616</connector>
         <connector name="artemis-slave">tcp://internal-cluster-dns-2:61616</connector>
      </connectors>
      

      The cluster is using static discovery.

       

      Factory on internal clients are using:

      (tcp://internal-cluster-dns-1:61616,tcp://internal-cluster-dns-2:61616)?ha=true&reconnectAttempts=30&useTopologyForLoadBalancing=false

      Those internal clients can successfully connect to the cluster and failover works as expected.

       

      However if there is also external clients which use external DNS/IP address of the cluster the topology doesn't return correct DNS name and the failover fails.

      (tcp://external-cluster-dns-1:61616,tcp://external-cluster-dns-2:61616)?ha=true&reconnectAttempts=30&useTopologyForLoadBalancing=false
      org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector: AMQ214033: Cannot resolve host java.net.UnknownHostException: internal-cluster-dns-1

       

      Attachments

        Issue Links

          Activity

            People

              brusdev Domenico Francesco Bruscino
              ViliusS Vilius Šumskas
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h