activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From naveen <naveenraz...@gmail.com>
Subject Artemis MQ Cluster Issue
Date Thu, 07 Mar 2019 10:09:22 GMT
Hello,

I have created the new brokers on top of it Load Balancer is configured in a
round rabin fashion.

while clinet sending mesages to load balancer, all messages are reaching to
Broker Node1 only , not reaching the Broker Node2.

PFB attached Broker XML file for your refernce.

please let me know  if any configuration changes need to do ? 



<?xml version='1.0'?>


<configuration xmlns="urn:activemq"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xi="http://www.w3.org/2001/XInclude"
               xsi:schemaLocation="urn:activemq
/schema/artemis-configuration.xsd">

   <core xmlns="urn:activemq:core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="urn:activemq:core ">

      <name>0.0.0.0</name>


      <persistence-enabled>true</persistence-enabled>

      
      <journal-type>ASYNCIO</journal-type>

      <paging-directory>data/paging</paging-directory>

      <bindings-directory>data/bindings</bindings-directory>

      <journal-directory>data/journal</journal-directory>

     
<large-messages-directory>data/large-messages</large-messages-directory>

      <journal-datasync>true</journal-datasync>

      <journal-min-files>2</journal-min-files>

      <journal-pool-files>10</journal-pool-files>

      <journal-file-size>10M</journal-file-size>

      
      <journal-buffer-timeout>16000</journal-buffer-timeout>


      
      <journal-max-io>4096</journal-max-io>
      

      

      
      

      
      

      
      

      
      




      
      <disk-scan-period>5000</disk-scan-period>

      
      <max-disk-usage>90</max-disk-usage>

      
      <critical-analyzer>true</critical-analyzer>

      <critical-analyzer-timeout>120000</critical-analyzer-timeout>

      <critical-analyzer-check-period>60000</critical-analyzer-check-period>

      <critical-analyzer-policy>HALT</critical-analyzer-policy>

      

          <connectors>
         <connector name="netty-connector">tcp://<Node1IP>:61616</connector>

      </connectors>


      <acceptors>

         
         
         

         

         
         <acceptor
name="artemis">tcp://0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300</acceptor>

         
         <acceptor
name="amqp">tcp://0.0.0.0:5672?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=AMQP;useEpoll=true;amqpCredits=1000;amqpLowCredits=300</acceptor>

         
         <acceptor
name="netty-connector">tcp://<Node1IP>:61613?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=STOMP;useEpoll=true</acceptor>

         
         <acceptor
name="hornetq">tcp://0.0.0.0:5445?anycastPrefix=jms.queue.;multicastPrefix=jms.topic.;protocols=HORNETQ,STOMP;useEpoll=true</acceptor>

         
         <acceptor
name="mqtt">tcp://0.0.0.0:1883?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=MQTT;useEpoll=true</acceptor>

      </acceptors>

      
      <broadcast-groups>
         <broadcast-group name="Noqodi-broadcast-group">
            <local-bind-address><Node1IP></local-bind-address>
            <local-bind-port>5432</local-bind-port>
            <group-address>231.7.7.7</group-address>
            <group-port>9876</group-port>
            <broadcast-period>100</broadcast-period>
            <connector-ref>netty-connector</connector-ref>
         </broadcast-group>
      </broadcast-groups>

      <discovery-groups>
         <discovery-group name="Noqodi-discovery-group">
            <local-bind-address><Node1IP></local-bind-address>
            <group-address>231.7.7.7</group-address>
            <group-port>9876</group-port>
            <refresh-timeout>10000</refresh-timeout>
         </discovery-group>
      </discovery-groups>

      <cluster-connections>
                   <cluster-connection name="Noqodi-cluster">
                          <address>jms</address>
                          <connector-ref>netty-connector</connector-ref>
                          <check-period>1000</check-period>
                          <connection-ttl>600000</connection-ttl>
                         
<min-large-message-size>50000</min-large-message-size>
                          <call-timeout>5000</call-timeout>
                          <retry-interval>500</retry-interval>
                         
<retry-interval-multiplier>1.0</retry-interval-multiplier>
                          <max-retry-interval>5000</max-retry-interval>
                         
<initial-connect-attempts>-1</initial-connect-attempts>
                          <reconnect-attempts>-1</reconnect-attempts>
                         
<use-duplicate-detection>true</use-duplicate-detection>
                         
<message-load-balancing>STRICT</message-load-balancing>
                          <max-hops>1</max-hops>
                         
<confirmation-window-size>20000</confirmation-window-size>
                         
<call-failover-timeout>30000</call-failover-timeout>
                         
<notification-interval>1000</notification-interval>
                          <notification-attempts>2</notification-attempts>
                          <discovery-group-ref
discovery-group-name="Noqodi-discovery-group"/>
                  </cluster-connection>
      </cluster-connections>

      <security-settings>
         <security-setting match="#">
            <permission type="createNonDurableQueue" roles="amq"/>
            <permission type="deleteNonDurableQueue" roles="amq"/>
            <permission type="createDurableQueue" roles="amq"/>
            <permission type="deleteDurableQueue" roles="amq"/>
            <permission type="createAddress" roles="amq"/>
            <permission type="deleteAddress" roles="amq"/>
            <permission type="consume" roles="amq"/>
            <permission type="browse" roles="amq"/>
            <permission type="send" roles="amq"/>
            
            <permission type="manage" roles="amq"/>
         </security-setting>
      </security-settings>

      <address-settings>
         
         <address-setting match="activemq.management#">
            <dead-letter-address>DLQ</dead-letter-address>
            <expiry-address>ExpiryQueue</expiry-address>
            <redelivery-delay>0</redelivery-delay>
            
            <max-size-bytes>-1</max-size-bytes>
           
<message-counter-history-day-limit>10</message-counter-history-day-limit>
            <address-full-policy>PAGE</address-full-policy>
            <auto-create-queues>true</auto-create-queues>
            <auto-create-addresses>true</auto-create-addresses>
            <auto-create-jms-queues>true</auto-create-jms-queues>
            <auto-create-jms-topics>true</auto-create-jms-topics>
         </address-setting>
         
         <address-setting match="#">
            <dead-letter-address>DLQ</dead-letter-address>
            <expiry-address>ExpiryQueue</expiry-address>
            <redelivery-delay>0</redelivery-delay>
            
            <max-size-bytes>-1</max-size-bytes>
           
<message-counter-history-day-limit>10</message-counter-history-day-limit>
            <address-full-policy>PAGE</address-full-policy>
            <auto-create-queues>true</auto-create-queues>
            <auto-create-addresses>true</auto-create-addresses>
            <auto-create-jms-queues>true</auto-create-jms-queues>
            <auto-create-jms-topics>true</auto-create-jms-topics>
         </address-setting>
      </address-settings>

      <addresses>
         <address name="DLQ">
            <anycast>
               <queue name="DLQ" />
            </anycast>
         </address>
         <address name="ExpiryQueue">
            <anycast>
               <queue name="ExpiryQueue" />
            </anycast>
         </address>

      </addresses>


      

   </core>
</configuration>



Broker Node 2 also same as above and only changes are in place
netty-connector">tcp://<Node1IP>:61614 and Broker node 2 IP .

please let me know if you need any further information.

Thanks
Naveen 



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

Mime
View raw message