0 Replies Latest reply on Nov 14, 2013 12:08 AM by veenaonnet

    Jboss7.1.1-final messaging clustering - will messages in queue be picked up by the another node if the node goes down

    veenaonnet

      Hi,

       

      I have configured cluster using standalone-full-ha.xml. It has 2 nodes(Active and standby). I can see both nodes processing the messages.

      At one point message count of one node is 0 and other node has some messages left in the queue.

      When the node with messages goes down(standby), I can see couple of messages in its queue(checked using the admin console).

      Another node does not consume these messages.

       

      As per my understanding, all the messages of the node which is down should get redirected to the up node after the timeout interval.

      Am I missing any configuration?

       

      Configuration is:

      <subsystem xmlns="urn:jboss:domain:messaging:1.1">
                  <hornetq-server>
                      <clustered>true</clustered>
                      <persistence-enabled>true</persistence-enabled>
                      <journal-file-size>102400</journal-file-size>
                      <journal-min-files>2</journal-min-files>
                <cluster-user>admin</cluster-user>
                      <cluster-password>admin</cluster-password>
                      <connectors>
                          <connector name="netty">
                              <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
                              <param key="host" value="${hornetq.remoting.netty.host}"/>
                              <param key="port" value="5445"/>
                          </connector>
                          <netty-connector name="netty-throughput" socket-binding="messaging-throughput">
                              <param key="batch-delay" value="50"/>
                          </netty-connector>
                          <in-vm-connector name="in-vm" server-id="0"/>
                      </connectors>

                      <acceptors>
                          <netty-acceptor name="netty" socket-binding="messaging"/>
                          <netty-acceptor name="netty-throughput" socket-binding="messaging-throughput">
                              <param key="batch-delay" value="50"/>
                              <param key="direct-deliver" value="false"/>
                          </netty-acceptor>
                          <in-vm-acceptor name="in-vm" server-id="0"/>
                      </acceptors>

        <broadcast-groups>
                          <broadcast-group name="bg-group">
                              <group-address>${jboss.partition.udpGroup}</group-address>
                              <group-port>9876</group-port>
                              <broadcast-period>5000</broadcast-period>
                              <connector-ref>netty</connector-ref>
                          </broadcast-group>
                      </broadcast-groups>
                      <discovery-groups>
                          <discovery-group name="dg-group">
                              <group-address>${jboss.partition.udpGroup}</group-address>
                              <group-port>9876</group-port>
                              <refresh-timeout>10000</refresh-timeout>
                          </discovery-group>
                      </discovery-groups>
                      <cluster-connections>
                          <cluster-connection name="msf-cluster-${msf.cluster.name}">
                              <address>jms</address>
                              <connector-ref>netty</connector-ref>
                              <discovery-group-ref discovery-group-name="dg-group"/>
                          </cluster-connection>
                      </cluster-connections>
                      <security-settings>
                          <security-setting match="#">
                              <permission type="send" roles="guest"/>
                              <permission type="consume" roles="guest"/>
                              <permission type="createNonDurableQueue" roles="guest"/>
                              <permission type="deleteNonDurableQueue" roles="guest"/>
                          </security-setting>
                      </security-settings>
                      <address-settings>
                          <!--default for catch all-->
                          <address-setting match="#">
                              <dead-letter-address>jms.queue.DLQ</dead-letter-address>
                              <expiry-address>jms.queue.ExpiryQueue</expiry-address>
                              <redelivery-delay>0</redelivery-delay>
                              <redistribution-delay>1000</redistribution-delay>
                              <max-size-bytes>10485760</max-size-bytes>
                              <address-full-policy>BLOCK</address-full-policy>
                              <message-counter-history-day-limit>10</message-counter-history-day-limit>
                          </address-setting>
                      </address-settings>
                      <jms-connection-factories>