6 Replies Latest reply on Oct 11, 2012 12:36 PM by rhusar

    JBoss 7 domain servers fail to find each other. Session failover not working

    harlander3000

      Hi,

       

      Im trying to get to fedora 15 servers running JBoss 7.1.1.Final. I have everthing working except for session failover. I believe JGroups is not finding each other which might have something to do with the servers each having 2 IP addresses. One external and one internal address.

       

      Is this related to https://community.jboss.org/thread/203530 . If it is i dont see the answer given on how to get this working?

       

      Can some please help me with this? My logs are below and the domain.xml and host.xml files are attached.

       

      Many thanks in advance.


      Dave.

       

       

       

      Master log

       

       

      [Server:server-three] 13:06:53,428 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-1) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
      [Server:server-three] 13:06:54,032 INFO  [stdout] (pool-13-thread-1) 
      [Server:server-three] 13:06:54,033 INFO  [stdout] (pool-13-thread-1) -------------------------------------------------------------------
      [Server:server-three] 13:06:54,034 INFO  [stdout] (pool-13-thread-1) GMS: address=master:server-three/web, cluster=web, physical address=10.178.64.152:55200
      [Server:server-three] 13:06:54,035 INFO  [stdout] (pool-13-thread-1) -------------------------------------------------------------------
      [Server:server-three] 13:06:56,286 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-8) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
      [Server:server-three] 13:06:56,287 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-3) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
      [Server:server-three] 13:06:56,370 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-14-thread-1) ISPN000078: Starting JGroups Channel
      [Server:server-three] 13:06:56,379 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-14-thread-1) ISPN000094: Received new cluster view: [master:server-three/web|0] [master:server-three/web]
      [Server:server-three] 13:06:56,382 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-14-thread-1) ISPN000079: Cache local address is master:server-three/web, physical addresses are [10.178.64.152:55200]
      [Server:server-three] 13:06:56,391 INFO  [org.infinispan.factories.GlobalComponentRegistry] (pool-14-thread-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL
      [Server:server-three] 13:06:56,392 INFO  [org.infinispan.config.ConfigurationValidatingVisitor] (pool-14-thread-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
      [Server:server-three] 13:06:56,548 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-14-thread-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
      [Server:server-three] 13:06:56,572 INFO  [org.jboss.as.clustering.infinispan] (pool-14-thread-1) JBAS010281: Started repl cache from web container
      [Server:server-three] 13:06:56,588 INFO  [org.jboss.as.clustering.impl.CoreGroupCommunicationService.web] (MSC service thread 1-8) JBAS010206: Number of cluster members: 1
      

       

      Slave log

       

       

      [Server:server-three] 13:07:39,170 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-3) JBAS010406: Registered connection factory java:/JmsXA
      [Server:server-three] 13:07:39,194 INFO  [org.jboss.as.messaging] (MSC service thread 1-1) JBAS011601: Bound messaging object to jndi name java:/topic/test
      [Server:server-three] 13:07:39,196 INFO  [org.jboss.as.messaging] (MSC service thread 1-1) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/topic/test
      [Server:server-three] 13:07:39,200 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
      [Server:server-three] 13:07:39,202 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:/RemoteConnectionFactory
      [Server:server-three] 13:07:39,206 INFO  [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-3) HornetQ resource adaptor started
      [Server:server-three] 13:07:39,210 INFO  [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-3) IJ020002: Deployed: file://RaActivatorhornetq-ra
      [Server:server-three] 13:07:39,218 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-6) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
      [Server:server-three] 13:07:39,793 INFO  [stdout] (pool-13-thread-1) 
      [Server:server-three] 13:07:39,794 INFO  [stdout] (pool-13-thread-1) -------------------------------------------------------------------
      [Server:server-three] 13:07:39,795 INFO  [stdout] (pool-13-thread-1) GMS: address=slave:server-three/web, cluster=web, physical address=10.178.64.153:55200
      [Server:server-three] 13:07:39,797 INFO  [stdout] (pool-13-thread-1) -------------------------------------------------------------------
      [Server:server-three] 13:07:42,043 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-6) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
      [Server:server-three] 13:07:42,046 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
      [Server:server-three] 13:07:42,122 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-14-thread-1) ISPN000078: Starting JGroups Channel
      [Server:server-three] 13:07:42,129 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-14-thread-1) ISPN000094: Received new cluster view: [slave:server-three/web|0] [slave:server-three/web]
      [Server:server-three] 13:07:42,132 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-14-thread-1) ISPN000079: Cache local address is slave:server-three/web, physical addresses are [10.178.64.153:55200]
      [Server:server-three] 13:06:56,671 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-6) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
      [Server:server-three] 13:06:56,676 INFO  [org.infinispan.config.ConfigurationValidatingVisitor] (MSC service thread 1-6) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
      [Server:server-three] 13:06:56,705 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-6) ISPN000031: MBeans were successfully registered to the platform mbean server.
      [Server:server-three] 13:06:56,709 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-6) JBAS010281: Started //default-host//test cache from web container
      
        • 1. Re: JBoss 7 domain servers fail to find each other. Session failover not working
          rhusar

          I have been using Fedora for many years now, the only thing I need to get sorted to get clustering working is disabling the firewall which is on by default. Can you retry after doing "sudo service iptables stop" ?

          • 2. Re: JBoss 7 domain servers fail to find each other. Session failover not working
            harlander3000

            Hi Radoslav,

             

            Im sorry but that didnt work. Have you got anything else i can try?

             

            Thanks


            Dave.

            • 3. Re: JBoss 7 domain servers fail to find each other. Session failover not working
              rhusar

              By default, AS7 uses UDP multicast for discovery. It could be the case that UDP multicast is not working for your network? With the firewall off, try to switch the default stack to TCP and instead of MPING configure TCPPING and setup initial members.

              • 4. Re: JBoss 7 domain servers fail to find each other. Session failover not working
                harlander3000

                Sorry to be a painbut could you please give me an example of how to change this

                 

                                <stack name="tcp">

                                    <transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics"/>

                                    <protocol type="MPING" socket-binding="jgroups-mping"/>

                                    <protocol type="MERGE2"/>

                                    <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>

                                    <protocol type="FD"/>

                                    <protocol type="VERIFY_SUSPECT"/>

                                    <protocol type="BARRIER"/>

                                    <protocol type="pbcast.NAKACK"/>

                                    <protocol type="UNICAST2"/>

                                    <protocol type="pbcast.STABLE"/>

                                    <protocol type="pbcast.GMS"/>

                                    <protocol type="UFC"/>

                                    <protocol type="MFC"/>

                                    <protocol type="FRAG2"/>

                                </stack>

                • 5. Re: JBoss 7 domain servers fail to find each other. Session failover not working
                  harlander3000

                  Hi Radoslav,

                   

                  Many thanks for your help it worked.

                   

                  Dave

                   

                                      <protocol type="TCPPING">

                                          <property name="timeout">

                                              3000

                                          </property>

                                          <property name="initial_hosts">

                                              10.178.64.153[7600],10.178.64.152[7600]

                                          </property>

                                          <property name="port_range">

                                              1

                                          </property>

                                          <property name="num_initial_members">

                                              2

                                          </property>

                                      </protocol>


                  • 6. Re: JBoss 7 domain servers fail to find each other. Session failover not working
                    rhusar

                    Hooray! Cool