0 Replies Latest reply on Nov 26, 2015 7:32 AM by vyzivus45

    Trouble getting two wildfly standalone servers to join a cluster

    vyzivus45

      Good day, I have tried this very simple tutorial to create a simplest JBoss Wildfly 9.0.2 Final cluster possible, from two standalone clusters: http://lauraliparulo.altervista.org/wildfly-standalone-clustering/

      I got up to a point where HornetMQ apparently forms a cluster, based on the presence of the following messages in the logs:

       

      2015-11-26 12:55:09,306 INFO  [org.hornetq.core.server] (Thread-9 (HornetQ-server-HornetQServerImpl::serverUUID=e0bce726-9432-11e5-945c-194823146130-301455357)) HQ221027: Bridge ClusterConnectionBridge@45814a00 [name=sf.my-cluster.e9ad432f-9432-11e5-bbf3-dffa6f9322f8, queue=QueueImpl[name=sf.my-cluster.e9ad432f-9432-11e5-bbf3-dffa6f9322f8, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=e0bce726-9432-11e5-945c-194823146130]]@12bb5065 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@45814a00 [name=sf.my-cluster.e9ad432f-9432-11e5-bbf3-dffa6f9322f8, queue=QueueImpl[name=sf.my-cluster.e9ad432f-9432-11e5-bbf3-dffa6f9322f8, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=e0bce726-9432-11e5-945c-194823146130]]@12bb5065 targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=http-connector, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=8180&host=localhost&http-upgrade-enabled=true&http-upgrade-endpoint=http-acceptor], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@1237475279[nodeUUID=e0bce726-9432-11e5-945c-194823146130, connector=TransportConfiguration(name=http-connector, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=8080&host=localhost&http-upgrade-enabled=true&http-upgrade-endpoint=http-acceptor, address=jms, server=HornetQServerImpl::serverUUID=e0bce726-9432-11e5-945c-194823146130])) [initialConnectors=[TransportConfiguration(name=http-connector, factory=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory) ?port=8180&host=localhost&http-upgrade-enabled=true&http-upgrade-endpoint=http-acceptor], discoveryGroupConfiguration=null]] is connected

       

      However, I cannot verify at all that the JBoss itself is clustered: there is no message in logs saying something like this:

       

      21:18:27,844 INFO [org.jboss.as.clustering] (Incoming-1,null) JBAS010225: New cluster view for partition ejb (id: 1, delta: 1, merge: false) : [jb1/ejb, jb2/ejb]

      21:18:27,844 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Incoming-1,null) ISPN000094: Received new cluster view: [jb1/ejb|1] [jb1/ejb, jb/ejb]

      21:18:27,849 INFO [org.jboss.as.clustering] (Incoming-3,null) JBAS010225: New cluster view for partition web (id: 1, delta: 1, merge: false) : [jb1/web, jb2/web]

      21:18:27,849 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Incoming-3,null) ISPN000094: Received new cluster view: [jb1/web|1] [jb1/web, jb2/web]

       

      Is there any official documentation on how to quickly try out a simplest possible JBoss Wildfly 9.0.2 standalone cluster on a single machine, just for testing purposes? I googled a lot but there is only docu on some domain master/slave stuff, and only a bunch of unofficial tutorials, none of which works for me. I'm running Ubuntu x86-64 15.10 with ufw disabled, java version "1.8.0_66"

      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)

      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

       

      I would think that there is some network misconfiguration on my machine that prevents the jboss cluster to work, however the HornetQ seems to connect properly. There is also no information in the management console whatsoever that a cluster has been formed.

       

      EDIT: I finally deployed the clustering/http simple war app from arun-gupta/wildfly-samples · GitHub ; I had to deploy the war to both standalone1 and standalone2. It showed me that the sessions seem to be synchronized. However, I am still missing any kind of log message in JBoss that the cluster indeed works...