Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10046

Cannot create cluster with JGroups Gossip router

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 12.0.0.Final
    • Clustering
    • None
    • Hide
      • Unzip WF12 to two different directories
      • Download attached standalone xml files and copy instead of standalone-full-ha.xml
      • Start gosship router by: java -cp $JBOSS_HOME//bin/client/jboss-client.jar org.jgroups.stack.GossipRouter -port 12001 -bindaddress 0.0.0.0
      • Start first by: sh standalone.sh -c standalone-full-ha.xml
      • Start second by: sh standalone.sh -c standalone-full-ha.xml -Djboss.socket.binding.port-offset=1000

      There should appear message like:

      11:56:17,607 INFO  [org.apache.activemq.artemis.core.server] (Thread-9 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@49be2674)) AMQ221027: Bridge ClusterConnectionBridge@6a0e45dc [name=sf.my-cluster.3c2415d7-2b61-11e8-81e5-f496342f6705, queue=QueueImpl[name=sf.my-cluster.3c2415d7-2b61-11e8-81e5-f496342f6705, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUUID=3edb46eb-2b61-11e8-86e1-54e1ad305985]]@87f9619 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@6a0e45dc [name=sf.my-cluster.3c2415d7-2b61-11e8-81e5-f496342f6705, queue=QueueImpl[name=sf.my-cluster.3c2415d7-2b61-11e8-81e5-f496342f6705, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUUID=3edb46eb-2b61-11e8-86e1-54e1ad305985]]@87f9619 targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=9080&host=localhost], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@1691717715[nodeUUID=3edb46eb-2b61-11e8-86e1-54e1ad305985, connector=TransportConfiguration(name=connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=8080&host=localhost, address=jms, server=ActiveMQServerImpl::serverUUID=3edb46eb-2b61-11e8-86e1-54e1ad305985])) [initialConnectors=[TransportConfiguration(name=connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=9080&host=localhost], discoveryGroupConfiguration=null]] is connected
      

      which informs that Artemis cluster was formed but it does not.

      Show
      Unzip WF12 to two different directories Download attached standalone xml files and copy instead of standalone-full-ha.xml Start gosship router by: java -cp $JBOSS_HOME//bin/client/jboss-client.jar org.jgroups.stack.GossipRouter -port 12001 -bindaddress 0.0.0.0 Start first by: sh standalone.sh -c standalone-full-ha.xml Start second by: sh standalone.sh -c standalone-full-ha.xml -Djboss.socket.binding.port-offset=1000 There should appear message like: 11:56:17,607 INFO [org.apache.activemq.artemis.core.server] ( Thread -9 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@49be2674)) AMQ221027: Bridge ClusterConnectionBridge@6a0e45dc [name=sf.my-cluster.3c2415d7-2b61-11e8-81e5-f496342f6705, queue=QueueImpl[name=sf.my-cluster.3c2415d7-2b61-11e8-81e5-f496342f6705, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUUID=3edb46eb-2b61-11e8-86e1-54e1ad305985]]@87f9619 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@6a0e45dc [name=sf.my-cluster.3c2415d7-2b61-11e8-81e5-f496342f6705, queue=QueueImpl[name=sf.my-cluster.3c2415d7-2b61-11e8-81e5-f496342f6705, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUUID=3edb46eb-2b61-11e8-86e1-54e1ad305985]]@87f9619 targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=acceptor&activemqServerName= default &httpUpgradeEnabled= true &port=9080&host=localhost], discoveryGroupConfiguration= null ]]::ClusterConnectionImpl@1691717715[nodeUUID=3edb46eb-2b61-11e8-86e1-54e1ad305985, connector=TransportConfiguration(name=connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=acceptor&activemqServerName= default &httpUpgradeEnabled= true &port=8080&host=localhost, address=jms, server=ActiveMQServerImpl::serverUUID=3edb46eb-2b61-11e8-86e1-54e1ad305985])) [initialConnectors=[TransportConfiguration(name=connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=acceptor&activemqServerName= default &httpUpgradeEnabled= true &port=9080&host=localhost], discoveryGroupConfiguration= null ]] is connected which informs that Artemis cluster was formed but it does not.

      I've used config from EAP 7.1.0/WF11 where gossip router was configured in udp stack like:

        <stack name="udp">
                          <transport type="UDP" shared="false" socket-binding="jgroups-udp"/>
                          <protocol type="PING"/>
                          <protocol type="MERGE3"/>
                          <protocol type="FD_SOCK"/>
                          <protocol type="FD_ALL"/>
                          <protocol type="VERIFY_SUSPECT"/>
                          <protocol type="pbcast.NAKACK2"/>
                          <protocol type="UNICAST3"/>
                          <protocol type="pbcast.STABLE"/>
                          <protocol type="pbcast.GMS"/>
                          <protocol type="UFC"/>
                          <protocol type="MFC"/>
                          <protocol type="FRAG2"/>
                          <protocol type="TUNNEL">
                              <property name="gossip_router_hosts">
                                  0.0.0.0[12001]
                              </property>
                          </protocol>
                      </stack>
      

      Gossip router was started on localhost:
      java -cp $JBOSS_HOME//bin/client/jboss-client.jar org.jgroups.stack.GossipRouter -port 12001 -bindaddress 0.0.0.0

      but cluster does not form up. The same configuration works in EAP 7.1.

      Attaching xml config files for both of the servers.

        1. standalone-full-ha-gosship1.xml
          41 kB
          Miroslav Novak
        2. standalone-full-ha-gosship2.xml
          41 kB
          Miroslav Novak

              pferraro@redhat.com Paul Ferraro
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: