You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by phil <ph...@bolthole.com> on 2019/10/18 17:56:47 UTC

basic static connection cluster setup not working

trying to get a two node cluster going in google cloud for test purposes.
For one brief shining moment I some how had it showing "nodes=2 members=2"
and the "my-cluster" diagram showed both nodes. But now I've lost the magic.


I've tried a bunch of things. Most recently, the simplest syntax that seems
to be recommended in the src tree under
examples/features/clustered/clustered-static-discovery-uri

tcpdump says there is traffic flowing both ways. and when I kill one of
them, the other logs "connection was disconnected". So they're talking..
they're just not CLUSTERING?!?


 assistance appreciated. 
 here's what the admin gui says about topology and connections on the
primary node.

I dont get it. both nodes show up in the topology attribute, but they DONT
show up in the cluster diagram, and the node count is only 1.


topology on
Topology@597a725f[owner=ClusterConnectionImpl@552937500[nodeUUID=cd4fa28f-f170-11e9-87de-42010a800005,
connector=TransportConfiguration(name=artemis,
factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory)
?port=61616&host=10-128-0-5, address=,
server=ActiveMQServerImpl::serverUUID=cd4fa28f-f170-11e9-87de-42010a800005]]:
cd4fa28f-f170-11e9-87de-42010a800005 => TopologyMember[id =
cd4fa28f-f170-11e9-87de-42010a800005,
connector=Pair[a=TransportConfiguration(name=artemis,
factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory)
?port=61616&host=10-128-0-6, b=null], backupGroupName=null,
scaleDownGroupName=null] nodes=1 members=1


     ########
config excerps from broker.xml below. its practically a copy of the example
tree, with minor name tweaking, so I dont get whats up here.

   <name>artemis1</name>

    <connectors>
        
        <connector name="artemis">tcp://10.128.0.5:61616</connector>
    </connectors>
      <acceptors>
         <acceptor name="artemis">tcp://10.128.0.5:61616</acceptor>

      </acceptors>


      <cluster-user>artemis</cluster-user>
      <cluster-password>apache</cluster-password>

      <cluster-connections>
        <cluster-connection-uri
address="static://(tcp://10.128.0.6:61616)?connectorName=artemis;retryInterval=500;messageLoadBalancingType=STRICT;maxHops=1"
name="my-cluster"/>
      </cluster-connections>




SECONDARY NODE file snippets here
    <connectors>
        
        <connector name="artemis">tcp://10.128.0.6:61616</connector>
    </connectors>
      <acceptors>
         <acceptor name="artemis">tcp://10.128.0.6:61616</acceptor>
      </acceptors>


      <cluster-user>artemis</cluster-user>
      <cluster-password>apache</cluster-password>

      <cluster-connections>
           <cluster-connection-uri
address="static://(tcp://10.128.0.5:61616)?connectorName=artemis;retryInterval=500;messageLoadBalancingType=STRICT;maxHops=1"
name="my-cluster"/>
      </cluster-connections>






--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html