Thanks for the suggestion great Justin and now I am using with the multiple IP 
which is same network.


      <!-- Network Check Configuration -->
      <network-check-period>10000</network-check-period>
      <network-check-timeout>1000</network-check-timeout>
      
<network-check-list>172.16.7.56,172.16.7.49,172.16.7.52,172.16.7.48</network-check-list>
      <network-check-ping-command>ping -n 1 -w %d 
%s</network-check-ping-command>
      <network-check-ping6-command>ping6 -c 1 %2$s</network-check-ping6-command>


And I am implemented these changes and moving into production and started to 
working on shared store configuration with my network shared path .

I think above path is more suitable for the issue.


Regards,
Albaasith




-----Original Message-----
From: Justin Bertram <jbert...@apache.org>
Sent: Tuesday, May 28, 2024 11:27 PM
To: users@activemq.apache.org
Subject: Re: ISSUE IN THE ARTEMIS_PRIMARY_SECONDARY_BOTH_LIVE_SAMETIME




*** [EXTERNAL] This message comes from an external organization. Exercise 
caution when opening attachments or clicking links, especially from unknown 
senders. ***



> ...ping from the primary broker  to the backup IP and from the backup
broker to the primary IP.

This kind of configuration is exactly *opposite* of what you should do. As
noted in the documentation [1]:

  The server will stop itself if it can’t ping one or more of the addresses
in the list.

So, if the primary broker is pinging the machine hosting the backup broker
and the machine hosting the backup broker goes down then the primary broker
will stop meaning *both* brokers are now stopped. Likewise, if the backup
broker is pinging the machine hosting the primary broker and the machine
hosting the primary broker goes down then the backup broker won't activate.
This essentially invalidates your HA configuration.

Again, I recommend you implement ZooKeeper in your environment or switch to
a share store configuration.


Justin

[1]
https://activemq.apache.org/components/artemis/documentation/latest/network-isolation.html#pinging-the-network

On Tue, May 28, 2024 at 4:07 AM Albaasith Ahamed <albaasi...@amlakint.com>
wrote:

>
> Yes, we need to implement this fix. For the time being, I am implementing
> the ping network configuration. Previously, I faced latency issues with the
> network as well.
>
> I have a Windows server that uses the command ping -n 1 -w %d %s to ping
> from the primary broker  to the backup IP and from the backup broker to the
> primary IP.
>
> I have checked with the network team, and pinging occurs within a second
> without any issue because both servers are on the same network with high
> configurations.
>
> Primary broker :
>
>       <!-- Network Check Configuration -->
>       <network-check-period>10000</network-check-period>
>       <network-check-timeout>1000</network-check-timeout>
>       <network-check-list>172.16.6.56</network-check-list>
>       <network-check-ping-command>ping -n 1 -w %d
> %s</network-check-ping-command>
>       <network-check-ping6-command>ping6 -c 1
> %2$s</network-check-ping6-command>
>
> backup broker
>
>       <!-- Network Check Configuration -->
>       <network-check-period>10000</network-check-period>
>       <network-check-timeout>1000</network-check-timeout>
>       <network-check-list>172.16.6.55</network-check-list>
>       <network-check-ping-command>ping -n 1 -w %d
> %s</network-check-ping-command>
>       <network-check-ping6-command>ping6 -c 1
> %2$s</network-check-ping6-command>
>
>
>
> Looking for your valuable feed back or any mistake I am doing here please
> justin.
>
>
> Regards,
> Albaasith Ahamed
>
>
>
>
>
> -----Original Message-----
> From: Justin Bertram <jbert...@apache.org>
> Sent: Tuesday, May 28, 2024 6:27 AM
> To: users@activemq.apache.org
> Subject: Re: ISSUE IN THE ARTEMIS_PRIMARY_SECONDARY_BOTH_LIVE_SAMETIME
>
>
>
>
> *** [EXTERNAL] This message comes from an external organization. Exercise
> caution when opening attachments or clicking links, especially from unknown
> senders. ***
>
>
>
> Generally speaking, I recommend you use the ZooKeeper integration to
> mitigate split-brain. That will be the most effective strategy.
>
> If you have _no other choice_ but to use the network pinger then it's
> better than nothing. It can be effective, but it is crude and not
> necessarily straightforward to configure.
>
>
> Justin
>
> On Mon, May 27, 2024 at 3:52 AM Albaasith Ahamed 
> <albaasi...@amlakint.com.invalid>
> wrote:
>
> >
> > Any update on this please Justin.
> >
> > Regards,
> > Albaasith Ahamed
> >
> >
> >
> >
> > -----Original Message-----
> > From: Albaasith Ahamed
> > Sent: Sunday, May 26, 2024 1:47 PM
> > To: 'Justin Bertram' <jbert...@apache.org>; users@activemq.apache.org
> > Subject: RE: ISSUE IN THE ARTEMIS_PRIMARY_SECONDARY_BOTH_LIVE_SAMETIME
> >
> > Thanks for the suggestion, Justin.
> >
> > Much appreciated.
> >
> > I have updated the Pinging the network concept in the Network
> > Isolation (Split Brain) and increase the
> > "<call-timeout>60000</call-timeout>" kindly confirm me weather my
> understanding is correct or not ?
> >
> >
> > New primary broker for resolve the split brain,
> >
> > <?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>amq1</name>
> >       <persistence-enabled>true</persistence-enabled>
> >       <journal-type>NIO</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-device-block-size>4096</journal-device-block-size>
> >       <journal-file-size>100M</journal-file-size>
> >       <journal-buffer-timeout>28000</journal-buffer-timeout>
> >       <journal-max-io>8192</journal-max-io>
> >       <disk-scan-period>5000</disk-scan-period>
> >       <max-disk-usage>100</max-disk-usage>
> >       <critical-analyzer>true</critical-analyzer>
> >       <critical-analyzer-timeout>1800000</critical-analyzer-timeout>
> >
> > <critical-analyzer-check-period>1800000</critical-analyzer-check-period>
> >       <critical-analyzer-policy>HALT</critical-analyzer-policy>
> >       <page-sync-timeout>1628000</page-sync-timeout>
> >       <global-max-size>10GB</global-max-size>
> >
> >       <!-- Network Check Configuration -->
> >       <network-check-period>10000</network-check-period>
> >       <network-check-timeout>1000</network-check-timeout>
> >       <network-check-list>172.16.7.49</network-check-list>
> >       <network-check-ping-command>ping -n 1 -w %d
> > %s</network-check-ping-command>
> >       <network-check-ping6-command>ping6 -c 1
> > %2$s</network-check-ping6-command>
> >
> >       <connectors>
> >         <connector name="amq1">tcp://ppr-t24-qve-01:61616</connector>
> >         <connector name="amq2">tcp://ppr-t24-qve-02:61616</connector>
> >       </connectors>
> >
> >       <acceptors>
> >          <acceptor name="artemis">tcp://
> > 0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;a
> > mqpMinLargeMessageSize=102400;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,O
> > PENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpDuplicat
> > eDetection=true
> > </acceptor>
> >          <acceptor name="amqp">tcp://
> > 0.0.0.0:5672?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;pr
> > otocols=AMQP,CORE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;am
> > qpMinLargeMessageSize=102400;amqpDuplicateDetection=true
> > </acceptor>
> >       </acceptors>
> >
> >       <broadcast-groups>
> >          <broadcast-group name="artemis-broadcast-group">
> >             <group-address>231.7.7.7</group-address>
> >             <group-port>9876</group-port>
> >             <broadcast-period>2000</broadcast-period>
> >             <connector-ref>amq1</connector-ref>
> >          </broadcast-group>
> >       </broadcast-groups>
> >
> >       <discovery-groups>
> >          <discovery-group name="artemis-discovery-group">
> >             <group-address>231.7.7.7</group-address>
> >             <group-port>9876</group-port>
> >             <refresh-timeout>10000</refresh-timeout>
> >          </discovery-group>
> >       </discovery-groups>
> >
> >       <cluster-user>admin</cluster-user>
> >       <cluster-password>admin</cluster-password>
> >
> >       <cluster-connections>
> >          <cluster-connection name="artemis-cluster">
> >             <connector-ref>amq1</connector-ref>
> >             <retry-interval>1000</retry-interval>
> >             <retry-interval-multiplier>3</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>
> >             <call-timeout>60000</call-timeout>
> >             <discovery-group-ref
> > discovery-group-name="artemis-discovery-group"/>
> >          </cluster-connection>
> >       </cluster-connections>
> >
> >       <ha-policy>
> >          <replication>
> >             <primary>
> >                <group-name>artemis-discovery-group</group-name>
> >                <check-for-active-server>true</check-for-active-server>
> >             </primary>
> >          </replication>
> >       </ha-policy>
> >
> >       <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>
> >
> >       <addresses>
> >          <address name="exampleQueue">
> >             <anycast>
> >                <queue name="exampleQueue"/>
> >             </anycast>
> >          </address>
> >          <address name="DLQ">
> >          </address>
> >          <address name="ExpiryQueue">
> >             <anycast>
> >                <queue name="ExpiryQueue" />
> >             </anycast>
> >          </address>
> >       </addresses>
> >
> >       <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>
> >             <auto-delete-queues>false</auto-delete-queues>
> >             <auto-delete-addresses>false</auto-delete-addresses>
> >             <auto-delete-jms-queues>false</auto-delete-jms-queues>
> >             <auto-delete-jms-topics>false</auto-delete-jms-topics>
> >          </address-setting>
> >          <address-setting match="#">
> >             <dead-letter-address>DLQ</dead-letter-address>
> >             <expiry-address>ExpiryQueue</expiry-address>
> >             <redelivery-delay>0</redelivery-delay>
> >
> >
> <auto-create-dead-letter-resources>true</auto-create-dead-letter-resources>
> >             <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>
> >             <auto-delete-queues>false</auto-delete-queues>
> >             <auto-delete-addresses>false</auto-delete-addresses>
> >             <auto-delete-jms-queues>false</auto-delete-jms-queues>
> >             <auto-delete-jms-topics>false</auto-delete-jms-topics>
> >          </address-setting>
> >          <address-setting match="exampleQueue">
> >             <dead-letter-address>DLQ</dead-letter-address>
> >             <redelivery-delay>1000</redelivery-delay>
> >             <max-delivery-attempts>3</max-delivery-attempts>
> >             <max-size-bytes>-1</max-size-bytes>
> >             <page-size-bytes>1048576</page-size-bytes>
> >
> > <message-counter-history-day-limit>10</message-counter-history-day-limit>
> >             <address-full-policy>PAGE</address-full-policy>
> >          </address-setting>
> >       </address-settings>
> >    </core>
> > </configuration>
> >
> > New secondary broker for resolve the split brain
> >
> > <?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 ">
> >
> >       <!-- Broker Name -->
> >       <name>amq2</name>
> >
> >       <!-- Persistence Settings -->
> >       <persistence-enabled>true</persistence-enabled>
> >       <journal-type>ASYNCIO</journal-type>
> >
> >       <!-- Directory Locations -->
> >       <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-director
> > y>
> >
> >       <!-- Journal Settings -->
> >       <journal-datasync>true</journal-datasync>
> >       <journal-min-files>2</journal-min-files>
> >       <journal-pool-files>10</journal-pool-files>
> >       <journal-device-block-size>4096</journal-device-block-size>
> >       <journal-file-size>100M</journal-file-size>
> >       <journal-buffer-timeout>28000</journal-buffer-timeout>
> >       <journal-max-io>8192</journal-max-io>
> >
> >       <!-- Disk Settings -->
> >       <disk-scan-period>5000</disk-scan-period>
> >       <max-disk-usage>100</max-disk-usage>
> >
> >       <!-- Critical Analyzer Settings -->
> >       <critical-analyzer>true</critical-analyzer>
> >       <critical-analyzer-timeout>150000</critical-analyzer-timeout>
> >
> > <critical-analyzer-check-period>60000</critical-analyzer-check-period>
> >       <critical-analyzer-policy>HALT</critical-analyzer-policy>
> >
> >       <!-- Page Sync Timeout -->
> >       <page-sync-timeout>1628000</page-sync-timeout>
> >
> >       <!-- Global Max Size -->
> >       <global-max-size>2GB</global-max-size>
> >
> >       <!-- Network Check Configuration -->
> >       <network-check-period>10000</network-check-period>
> >       <network-check-timeout>1000</network-check-timeout>
> >       <network-check-list>172.16.7.49</network-check-list>
> >       <network-check-ping-command>ping -n 1 -w %d
> > %s</network-check-ping-command>
> >       <network-check-ping6-command>ping6 -c 1
> > %2$s</network-check-ping6-command>
> >
> >       <!-- Connectors -->
> >       <connectors>
> >         <connector name="amq1">tcp://ppr-t24-qve-01:61616</connector>
> >         <connector name="amq2">tcp://ppr-t24-qve-02:61616</connector>
> >       </connectors>
> >
> >       <!-- Acceptors -->
> >       <acceptors>
> >            <!-- Artemis Acceptor -->
> >            <acceptor name="artemis">tcp://
> > 0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;a
> > mqpMinLargeMessageSize=102400;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,O
> > PENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpDuplicat
> > eDetection=true
> > </acceptor>
> >            <!-- AMQP Acceptor -->
> >            <acceptor name="amqp">tcp://
> > 0.0.0.0:5672?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;pr
> > otocols=AMQP,CORE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;am
> > qpMinLargeMessageSize=102400;amqpDuplicateDetection=true
> > </acceptor>
> >            <!-- STOMP Acceptor -->
> >            <acceptor name="stomp">tcp://
> > 0.0.0.0:61613?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;p
> > rotocols=STOMP,CORE;useEpoll=true
> > </acceptor>
> >            <!-- HornetQ Acceptor -->
> >            <acceptor name="hornetq">tcp://
> > 0.0.0.0:5445?anycastPrefix=jms.queue.;multicastPrefix=jms.topic.;proto
> > cols=HORNETQ,STOMP;useEpoll=true
> > </acceptor>
> >            <!-- MQTT Acceptor -->
> >            <acceptor name="mqtt">tcp://
> > 0.0.0.0:1883?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;pr
> > otocols=MQTT,CORE;useEpoll=true
> > </acceptor>
> >        </acceptors>
> >
> >        <!-- Broadcast Groups -->
> >        <broadcast-groups>
> >            <broadcast-group name="artemis-broadcast-group">
> >                <group-address>231.7.7.7</group-address>
> >                <group-port>9876</group-port>
> >                <broadcast-period>2000</broadcast-period>
> >                <connector-ref>amq2</connector-ref>
> >            </broadcast-group>
> >        </broadcast-groups>
> >
> >        <!-- Discovery Groups -->
> >        <discovery-groups>
> >            <discovery-group name="artemis-discovery-group">
> >                <group-address>231.7.7.7</group-address>
> >                <group-port>9876</group-port>
> >                <refresh-timeout>10000</refresh-timeout>
> >            </discovery-group>
> >        </discovery-groups>
> >
> >       <!-- Cluster Settings -->
> >       <cluster-user>admin</cluster-user>
> >       <cluster-password>admin</cluster-password>
> >       <cluster-connections>
> >          <cluster-connection name="artemis-cluster">
> >             <connector-ref>amq2</connector-ref>
> >             <retry-interval>1000</retry-interval>
> >             <retry-interval-multiplier>3</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>
> >             <call-timeout>30000</call-timeout> <!-- Added call-timeout
> > element -->
> >             <discovery-group-ref
> > discovery-group-name="artemis-discovery-group"/>
> >          </cluster-connection>
> >       </cluster-connections>
> >
> >       <!-- High Availability Policy -->
> >       <ha-policy>
> >         <replication>
> >           <backup>
> >             <group-name>artemis-discovery-group</group-name>
> >             <allow-failback>true</allow-failback>
> >             <failback-delay>5000</failback-delay>
> >           </backup>
> >         </replication>
> >       </ha-policy>
> >
> >       <!-- Security Settings -->
> >       <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 -->
> >       <addresses>
> >          <address name="exampleQueue">
> >             <anycast>
> >                <queue name="exampleQueue"/>
> >             </anycast>
> >          </address>
> >          <address name="DLQ">
> >          </address>
> >          <address name="ExpiryQueue">
> >             <anycast>
> >                <queue name="ExpiryQueue" />
> >             </anycast>
> >          </address>
> >       </addresses>
> >
> >       <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>
> >            <auto-delete-queues>false</auto-delete-queues>
> >            <auto-delete-addresses>false</auto-delete-addresses>
> >            <auto-delete-jms-queues>false</auto-delete-jms-queues>
> >            <auto-delete-jms-topics>false</auto-delete-jms-topics>
> >         </address-setting>
> >         <address-setting match="#">
> >            <dead-letter-address>DLQ</dead-letter-address>
> >            <expiry-address>ExpiryQueue</expiry-address>
> >            <redelivery-delay>0</redelivery-delay>
> >
> >
> <auto-create-dead-letter-resources>true</auto-create-dead-letter-resources>
> >            <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>
> >            <auto-delete-queues>false</auto-delete-queues>
> >            <auto-delete-addresses>false</auto-delete-addresses>
> >            <auto-delete-jms-queues>false</auto-delete-jms-queues>
> >            <auto-delete-jms-topics>false</auto-delete-jms-topics>
> >         </address-setting>
> >         <address-setting match="exampleQueue">
> >            <dead-letter-address>DLQ</dead-letter-address>
> >            <redelivery-delay>1000</redelivery-delay>
> >            <max-delivery-attempts>3</max-delivery-attempts>
> >            <max-size-bytes>-1</max-size-bytes>
> >            <page-size-bytes>1048576</page-size-bytes>
> >
> >
> <message-counter-history-day-limit>10</message-counter-history-day-limit>
> >            <address-full-policy>PAGE</address-full-policy>
> >         </address-setting>
> >       </address-settings>
> >    </core>
> > </configuration>
> >
> >
> >
> > regards,
> > Albaasith Ahamed
> >
> > -----Original Message-----
> > From: Justin Bertram <jbert...@apache.org>
> > Sent: Sunday, May 26, 2024 8:03 AM
> > To: users@activemq.apache.org
> > Subject: Re: ISSUE IN THE ARTEMIS_PRIMARY_SECONDARY_BOTH_LIVE_SAMETIME
> >
> > *** [EXTERNAL] This message comes from an external organization.
> > Exercise caution when opening attachments or clicking links,
> > especially from unknown senders. ***
> >
> >
> >
> > What you're observing is called "split brain" and it is discussed at
> > considerable length in the documentation [1]. It appears that you
> > haven't configured anything to mitigate split brain in your
> > deployment. I recommend you review the documentation and update your
> > deployment accordingly. If you have additional questions not addressed
> > by the documentation please let us know.
> >
> > To be clear, it's impossible to say what the root cause of the latency
> > problem is given the information provided. It may be a network issue,
> > a hardware issue, etc. The latency limit referenced by the AMQ222207
> > message is controlled by the value of <call-timeout> set on the
> > <cluster-connection> defined in broker.xml which is responsible for
> > joining the primary and backup server. This value defaults to 30,000
> milliseconds.
> > If you feel that this is too low for your environment and/or use-case
> > then you can increase it, but keep in mind that a response must be
> > received by the primary broker from the backup before it will respond
> > to the producer so high latency between the primary and backup will
> > bubble up to the clients producing the messages.
> >
> >
> > Justin
> >
> > [1]
> >
> > https://uk01.l.antigena.com/l/sNmCdzMUlGM8YFkDfPBFkF82Dl88AItbUPoBZsjQ
> > 8WoOYyMxxq9WxeVDYmz5UiWhfuIw7M~DFii~8xoNbulcCr_EdbHHUu5m-EbdGZ8QSlTX4j
> > VUeVFI5vTKhfEPXCRw7wfFlxvSNS1yQlwjea1y3UUe1WPpds4dr7LVPv6t1dbq7BYV4hOG
> > hGbWMiFVnuAgZbC_CiwisRwhiam1636OFLCh4UQk7duh_3SQ-4D
> >
> > On Sat, May 25, 2024 at 7:23 AM Albaasith Ahamed
> > <albaasi...@amlakint.com.invalid>
> > wrote:
> >
> > > Dear Team,
> > >
> > >
> > >
> > > *Artemis MQ*
> > >
> > > *Primary broker ERROR*
> > >
> > >
> > >
> > > 2024-05-25 02:00:52,946 WARN
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ222207: The backup server is not responding promptly introducing
> > > latency beyond the limit. Replication server being disconnected now.
> > >
> > >
> > >
> > > Artemic MQ
> > >
> > > Seconaday broker
> > >
> > > 2024-05-25 02:01:00,230 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221066: Initiating quorum vote: PrimaryFailoverQuorumVote
> > >
> > > 2024-05-25 02:01:00,230 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221084: Requested 0 quorum votes
> > >
> > > 2024-05-25 02:01:00,231 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221083: ignoring quorum vote as max cluster size is 1.
> > >
> > > 2024-05-25 02:01:00,231 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221071: Failing over based on quorum vote results.
> > >
> > > 2024-05-25 02:01:00,242 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221037: ActiveMQServerImpl::name=amq2 to become 'active'
> > >
> > > 2024-05-25 02:01:02,167 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221080: Deploying address exampleQueue supporting [ANYCAST]
> > >
> > > 2024-05-25 02:01:02,167 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221003: Deploying ANYCAST queue exampleQueue on address
> > > exampleQueue
> > >
> > > 2024-05-25 02:01:02,167 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221080: Deploying address DLQ supporting []
> > >
> > > 2024-05-25 02:01:02,167 WARN
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ222274: Failed to deploy address DLQ: AMQ229209: Can't remove
> > > routing type MULTICAST, queues exists for address: DLQ. Please
> > > delete queues before removing this routing type.
> > >
> > > 2024-05-25 02:01:02,167 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221080: Deploying address ExpiryQueue supporting [ANYCAST]
> > >
> > > 2024-05-25 02:01:02,167 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221003: Deploying ANYCAST queue ExpiryQueue on address
> > > ExpiryQueue
> > >
> > > 2024-05-25 02:01:02,183 WARN
> > > [org.apache.activemq.artemis.core.client]
> > > AMQ212034: There are more than one servers on the network
> > > broadcasting the same node id. You will see this message exactly
> > > once (per node) if a node is restarted, in which case it can be
> > > safely ignored. But if it is logged continuously it means you really
> > > do have more than one node on the same network active concurrently
> > > with the same node id. This could occur if you have a backup node
> > > active at the same time as its
> > primary node.
> > > nodeID=3468b7ea-0e82-11ef-922f-0050568e2645
> > >
> > > 2024-05-25 02:01:02,199 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221007: Server is now active
> > >
> > > 2024-05-25 02:01:02,199 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221020: Started NIO Acceptor at 0.0.0.0:61616 for protocols
> > > [CORE,MQTT,AMQP,STOMP,HORNETQ,OPENWIRE]
> > >
> > > 2024-05-25 02:01:02,214 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221020: Started NIO Acceptor at 0.0.0.0:5445 for protocols
> > > [HORNETQ,STOMP]
> > >
> > > 2024-05-25 02:01:02,214 WARN
> > > [org.apache.activemq.artemis.core.client]
> > > AMQ212034: There are more than one servers on the network
> > > broadcasting the same node id. You will see this message exactly
> > > once (per node) if a node is restarted, in which case it can be
> > > safely ignored. But if it is logged continuously it means you really
> > > do have more than one node on the same network active concurrently
> > > with the same node id. This could occur if you have a backup node
> > > active at the same time as its primary
> > > node.nodeID=3468b7ea-0e82-11ef-922f-0050568e2645
> > >
> > > 2024-05-25 02:01:02,214 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221020: Started NIO Acceptor at 0.0.0.0:5672 for protocols
> > > [CORE,AMQP]
> > >
> > > 2024-05-25 02:01:02,230 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221020: Started NIO Acceptor at 0.0.0.0:1883 for protocols
> > > [MQTT,CORE]
> > >
> > > 2024-05-25 02:01:02,246 INFO
> > > [org.apache.activemq.artemis.core.server]
> > > AMQ221020: Started NIO Acceptor at 0.0.0.0:61613 for protocols
> > > [CORE,STOMP]
> > >
> > > 2024-05-25 02:01:04,197 WARN
> > > [org.apache.activemq.artemis.core.client]
> > > AMQ212034: There are more than one servers on the network
> > > broadcasting the same node id. You will see this message exactly
> > > once (per node) if a node is restarted, in which case it can be
> > > safely ignored. But if it is logged continuously it means you really
> > > do have more than one node on the same network active concurrently
> > > with the same node id. This could occur if you have a backup node
> > > active at the same time as its
> > primary node.
> > > nodeID=3468b7ea-0e82-11ef-922f-0050568e2645
> > >
> > >
> > >
> > >
> > >
> > > *We are experiencing latency issues in backup those error receivied
> > > in the primary server, but there are no issues with the backup server.
> > > When the backup server detects a problem with the primary server, it
> > becomes active.
> > > However, the primary server also remains active, leading to a
> > > conflict as both servers are active simultaneously. This results in
> > > the broker not responding to requests properly*
> > >
> > > *Primary broker*
> > >
> > > <?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>amq1</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-direct
> > > or
> > > y>
> > >
> > >       <journal-datasync>true</journal-datasync>
> > >
> > >       <journal-min-files>2</journal-min-files>
> > >
> > >       <journal-pool-files>10</journal-pool-files>
> > >
> > >       <journal-device-block-size>4096</journal-device-block-size>
> > >
> > >       <journal-file-size>100M</journal-file-size>
> > >
> > >       <journal-buffer-timeout>28000</journal-buffer-timeout>
> > >
> > >       <journal-max-io>8192</journal-max-io>
> > >
> > >       <disk-scan-period>5000</disk-scan-period>
> > >
> > >       <max-disk-usage>100</max-disk-usage>
> > >
> > >       <critical-analyzer>true</critical-analyzer>
> > >
> > >       <critical-analyzer-timeout>150000</critical-analyzer-timeout>
> > >
> > >
> > > <critical-analyzer-check-period>60000</critical-analyzer-check-perio
> > > d>
> > >
> > >       <critical-analyzer-policy>HALT</critical-analyzer-policy>
> > >
> > >       <page-sync-timeout>1628000</page-sync-timeout>
> > >
> > >       <global-max-size>2GB</global-max-size>
> > >
> > >
> > >
> > >       <connectors>
> > >
> > >         <connector
> > > name="amq1">tcp://pro-t24-qve-01:61616</connector>
> > >
> > >         <connector
> > > name="amq2">tcp://pro-t24-qve-02:61616</connector>
> > >
> > >       </connectors>
> > >
> > >        <acceptors>
> > >
> > >            <acceptor name="artemis">tcp://
> > > 0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576
> > > ;a
> > > mqpMinLargeMessageSize=102400;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT
> > > ,O
> > > PENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpDuplic
> > > at
> > > eDetection=true
> > > </acceptor>
> > >
> > >            <acceptor name="amqp">tcp://
> > > 0.0.0.0:5672?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;
> > > pr
> > > otocols=AMQP,CORE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;
> > > am qpMinLargeMessageSize=102400;amqpDuplicateDetection=true
> > > </acceptor>
> > >
> > >        </acceptors>
> > >
> > >        <broadcast-groups>
> > >
> > >            <broadcast-group name="artemis-broadcast-group">
> > >
> > >                <group-address>231.7.7.7</group-address>
> > >
> > >                <group-port>9876</group-port>
> > >
> > >                <broadcast-period>2000</broadcast-period>
> > >
> > >                <connector-ref>amq1</connector-ref>
> > >
> > >            </broadcast-group>
> > >
> > >        </broadcast-groups>
> > >
> > >        <discovery-groups>
> > >
> > >            <discovery-group name="artemis-discovery-group">
> > >
> > >                <group-address>231.7.7.7</group-address>
> > >
> > >                <group-port>9876</group-port>
> > >
> > >                <refresh-timeout>10000</refresh-timeout>
> > >
> > >            </discovery-group>
> > >
> > >        </discovery-groups>
> > >
> > >       <cluster-user>admin</cluster-user>
> > >
> > >       <cluster-password>admin</cluster-password>
> > >
> > >       <cluster-connections>
> > >
> > >          <cluster-connection name="artemis-cluster">
> > >
> > >             <connector-ref>amq1</connector-ref>
> > >
> > >             <retry-interval>1000</retry-interval>
> > >
> > >             <retry-interval-multiplier>3</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>
> > >
> > >              <discovery-group-ref
> > > discovery-group-name="artemis-discovery-group"/>
> > >
> > >          </cluster-connection>
> > >
> > >       </cluster-connections>
> > >
> > >
> > >
> > >       <!-- Other config -->
> > >
> > >       <ha-policy>
> > >
> > >         <replication>
> > >
> > >           <primary>
> > >
> > >         <group-name>artemis-discovery-group</group-name>
> > >
> > >         <check-for-active-server>true</check-for-active-server>
> > >
> > >           </primary>
> > >
> > >         </replication>
> > >
> > >       </ha-policy>
> > >
> > >
> > >
> > >       <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"/>
> > >
> > >             <!-- we need this otherwise ./artemis data imp wouldn't
> > > work
> > > -->
> > >
> > >             <permission type="manage" roles="amq"/>
> > >
> > >          </security-setting>
> > >
> > >       </security-settings>
> > >
> > >       <addresses>
> > >
> > >          <address name="exampleQueue">
> > >
> > >             <anycast>
> > >
> > >                <queue name="exampleQueue"/>
> > >
> > >             </anycast>
> > >
> > >          </address>
> > >
> > >          <address name="DLQ">
> > >
> > >          </address>
> > >
> > >          <address name="ExpiryQueue">
> > >
> > >             <anycast>
> > >
> > >                <queue name="ExpiryQueue" />
> > >
> > >             </anycast>
> > >
> > >          </address>
> > >
> > >       </addresses>
> > >
> > >       <address-settings>
> > >
> > >          <!-- if you define auto-create on certain queues,
> > > management has to be auto-create -->
> > >
> > >          <address-setting match="activemq.management#">
> > >
> > >             <dead-letter-address>DLQ</dead-letter-address>
> > >
> > >             <expiry-address>ExpiryQueue</expiry-address>
> > >
> > >             <redelivery-delay>1000</redelivery-delay>
> > >
> > >             <max-delivery-attempts>3</max-delivery-attempts>
> > >
> > >             <!-- with -1 only the global-max-size is in use for
> > > limiting
> > > -->
> > >
> > >             <max-size-bytes>-1</max-size-bytes>
> > >
> > >
> > > <message-counter-history-day-limit>10</message-counter-history-day-l
> > > im
> > > it>
> > >
> > >             <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>
> > >
> > >             <auto-delete-queues>false</auto-delete-queues>
> > >
> > >             <auto-delete-addresses>false</auto-delete-addresses>
> > >
> > >             <auto-delete-jms-queues>false</auto-delete-jms-queues>
> > >
> > >             <auto-delete-jms-topics>false</auto-delete-jms-topics>
> > >
> > >          </address-setting>
> > >
> > >          <!--default for catch all-->
> > >
> > >          <address-setting match="#">
> > >
> > >             <dead-letter-address>DLQ</dead-letter-address>
> > >
> > >             <expiry-address>ExpiryQueue</expiry-address>
> > >
> > >             <redelivery-delay>1000</redelivery-delay>
> > >
> > >             <max-delivery-attempts>3</max-delivery-attempts>
> > >
> > >
> > > <auto-create-dead-letter-resources>true</auto-create-dead-letter-res
> > > ou
> > > rces>
> > >
> > >             <!-- with -1 only the global-max-size is in use for
> > > limiting
> > > -->
> > >
> > >             <max-size-bytes>-1</max-size-bytes>
> > >
> > >
> > > <message-counter-history-day-limit>10</message-counter-history-day-l
> > > im
> > > it>
> > >
> > >             <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>
> > >
> > >             <auto-delete-queues>false</auto-delete-queues>
> > >
> > >             <auto-delete-addresses>false</auto-delete-addresses>
> > >
> > >             <auto-delete-jms-queues>false</auto-delete-jms-queues>
> > >
> > >             <auto-delete-jms-topics>false</auto-delete-jms-topics>
> > >
> > >          </address-setting>
> > >
> > >          <address-setting match="exampleQueue">
> > >
> > >             <dead-letter-address>DLQ</dead-letter-address>
> > >
> > >
> > >             <redelivery-delay>1000</redelivery-delay>
> > >
> > >             <max-delivery-attempts>3</max-delivery-attempts>
> > >
> > >             <max-size-bytes>-1</max-size-bytes>
> > >
> > >             <page-size-bytes>1048576</page-size-bytes>
> > >
> > >
> > > <message-counter-history-day-limit>10</message-counter-history-day-l
> > > im
> > > it>
> > >
> > >             <address-full-policy>PAGE</address-full-policy>
> > >
> > >         </address-setting>
> > >
> > >       </address-settings>
> > >
> > >    </core>
> > >
> > > </configuration>
> > >
> > >
> > >
> > >
> > >
> > > *Secondary Broker*
> > >
> > > <?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>amq2</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-direct
> > > or
> > > y>
> > >
> > >       <journal-datasync>true</journal-datasync>
> > >
> > >       <journal-min-files>2</journal-min-files>
> > >
> > >       <journal-pool-files>10</journal-pool-files>
> > >
> > >       <journal-device-block-size>4096</journal-device-block-size>
> > >
> > >       <journal-file-size>100M</journal-file-size>
> > >
> > >       <journal-buffer-timeout>28000</journal-buffer-timeout>
> > >
> > >       <journal-max-io>8192</journal-max-io>
> > >
> > >       <disk-scan-period>5000</disk-scan-period>
> > >
> > >       <max-disk-usage>100</max-disk-usage>
> > >
> > >       <critical-analyzer>true</critical-analyzer>
> > >
> > >       <critical-analyzer-timeout>150000</critical-analyzer-timeout>
> > >
> > >
> > > <critical-analyzer-check-period>60000</critical-analyzer-check-perio
> > > d>
> > >
> > >       <critical-analyzer-policy>HALT</critical-analyzer-policy>
> > >
> > >       <page-sync-timeout>1628000</page-sync-timeout>
> > >
> > >       <global-max-size>2GB</global-max-size>
> > >
> > >
> > >
> > >       <connectors>
> > >
> > >         <connector
> > > name="amq1">tcp://pro-t24-qve-01:61616</connector>
> > >
> > >         <connector
> > > name="amq2">tcp://pro-t24-qve-02:61616</connector>
> > >
> > >       </connectors>
> > >
> > >        <acceptors>
> > >
> > >            <acceptor name="artemis">tcp://
> > > 0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576
> > > ;a
> > > mqpMinLargeMessageSize=102400;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT
> > > ,O
> > > PENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpDuplic
> > > at
> > > eDetection=true
> > > </acceptor>
> > >
> > >            <acceptor name="amqp">tcp://
> > > 0.0.0.0:5672?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;
> > > pr
> > > otocols=AMQP,CORE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;
> > > am qpMinLargeMessageSize=102400;amqpDuplicateDetection=true
> > > </acceptor>
> > >
> > >            <acceptor name="stomp">tcp://
> > > 0.0.0.0:61613?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576
> > > ;p
> > > rotocols=STOMP,CORE;useEpoll=true
> > > </acceptor>
> > >
> > >            <acceptor name="hornetq">tcp://
> > > 0.0.0.0:5445?anycastPrefix=jms.queue.;multicastPrefix=jms.topic.;pro
> > > to
> > > cols=HORNETQ,STOMP;useEpoll=true
> > > </acceptor>
> > >
> > >            <acceptor name="mqtt">tcp://
> > > 0.0.0.0:1883?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;
> > > pr
> > > otocols=MQTT,CORE;useEpoll=true
> > > </acceptor>
> > >
> > >        </acceptors>
> > >
> > >        <broadcast-groups>
> > >
> > >            <broadcast-group name="artemis-broadcast-group">
> > >
> > >                <group-address>231.7.7.7</group-address>
> > >
> > >                <group-port>9876</group-port>
> > >
> > >                <broadcast-period>2000</broadcast-period>
> > >
> > >                <connector-ref>amq2</connector-ref>
> > >
> > >            </broadcast-group>
> > >
> > >        </broadcast-groups>
> > >
> > >        <discovery-groups>
> > >
> > >            <discovery-group name="artemis-discovery-group">
> > >
> > >                <group-address>231.7.7.7</group-address>
> > >
> > >                <group-port>9876</group-port>
> > >
> > >                <refresh-timeout>10000</refresh-timeout>
> > >
> > >            </discovery-group>
> > >
> > >        </discovery-groups>
> > >
> > >       <cluster-user>admin</cluster-user>
> > >
> > >       <cluster-password>admin</cluster-password>
> > >
> > >       <cluster-connections>
> > >
> > >          <cluster-connection name="artemis-cluster">
> > >
> > >             <connector-ref>amq2</connector-ref>
> > >
> > >             <retry-interval>1000</retry-interval>
> > >
> > >             <retry-interval-multiplier>3</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>
> > >
> > >              <discovery-group-ref
> > > discovery-group-name="artemis-discovery-group"/>
> > >
> > >          </cluster-connection>
> > >
> > >       </cluster-connections>
> > >
> > >
> > >
> > >       <!-- Other config -->
> > >
> > >       <ha-policy>
> > >
> > >         <replication>
> > >
> > >           <backup>
> > >
> > >                     <group-name>artemis-discovery-group</group-name>
> > >
> > >             <allow-failback>true</allow-failback>
> > >
> > >             <failback-delay>5000</failback-delay>
> > >
> > >           </backup>
> > >
> > >         </replication>
> > >
> > >       </ha-policy>
> > >
> > >
> > >
> > >       <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"/>
> > >
> > >             <!-- we need this otherwise ./artemis data imp wouldn't
> > > work
> > > -->
> > >
> > >             <permission type="manage" roles="amq"/>
> > >
> > >          </security-setting>
> > >
> > >       </security-settings>
> > >
> > >       <addresses>
> > >
> > >          <address name="exampleQueue">
> > >
> > >             <anycast>
> > >
> > >                <queue name="exampleQueue"/>
> > >
> > >             </anycast>
> > >
> > >          </address>
> > >
> > >          <address name="DLQ">
> > >
> > >          </address>
> > >
> > >          <address name="ExpiryQueue">
> > >
> > >             <anycast>
> > >
> > >                <queue name="ExpiryQueue" />
> > >
> > >             </anycast>
> > >
> > >          </address>
> > >
> > >       </addresses>
> > >
> > >       <address-settings>
> > >
> > >          <!-- if you define auto-create on certain queues,
> > > management has to be auto-create -->
> > >
> > >          <address-setting match="activemq.management#">
> > >
> > >             <dead-letter-address>DLQ</dead-letter-address>
> > >
> > >             <expiry-address>ExpiryQueue</expiry-address>
> > >
> > >             <redelivery-delay>1000</redelivery-delay>
> > >
> > >             <max-delivery-attempts>3</max-delivery-attempts>
> > >
> > >             <!-- with -1 only the global-max-size is in use for
> > > limiting
> > > -->
> > >
> > >             <max-size-bytes>-1</max-size-bytes>
> > >
> > >
> > > <message-counter-history-day-limit>10</message-counter-history-day-l
> > > im
> > > it>
> > >
> > >             <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>
> > >
> > >             <auto-delete-queues>false</auto-delete-queues>
> > >
> > >             <auto-delete-addresses>false</auto-delete-addresses>
> > >
> > >             <auto-delete-jms-queues>false</auto-delete-jms-queues>
> > >
> > >             <auto-delete-jms-topics>false</auto-delete-jms-topics>
> > >
> > >          </address-setting>
> > >
> > >          <!--default for catch all-->
> > >
> > >          <address-setting match="#">
> > >
> > >             <dead-letter-address>DLQ</dead-letter-address>
> > >
> > >             <expiry-address>ExpiryQueue</expiry-address>
> > >
> > >             <redelivery-delay>1000</redelivery-delay>
> > >
> > >             <max-delivery-attempts>3</max-delivery-attempts>
> > >
> > >
> > > <auto-create-dead-letter-resources>true</auto-create-dead-letter-res
> > > ou
> > > rces>
> > >
> > >             <!-- with -1 only the global-max-size is in use for
> > > limiting
> > > -->
> > >
> > >             <max-size-bytes>-1</max-size-bytes>
> > >
> > >
> > > <message-counter-history-day-limit>10</message-counter-history-day-l
> > > im
> > > it>
> > >
> > >             <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>
> > >
> > >             <auto-delete-queues>false</auto-delete-queues>
> > >
> > >             <auto-delete-addresses>false</auto-delete-addresses>
> > >
> > >             <auto-delete-jms-queues>false</auto-delete-jms-queues>
> > >
> > >             <auto-delete-jms-topics>false</auto-delete-jms-topics>
> > >
> > >          </address-setting>
> > >
> > >          <address-setting match="exampleQueue">
> > >
> > >             <dead-letter-address>DLQ</dead-letter-address>
> > >
> > >
> > >             <redelivery-delay>1000</redelivery-delay>
> > >
> > >             <max-delivery-attempts>3</max-delivery-attempts>
> > >
> > >             <max-size-bytes>-1</max-size-bytes>
> > >
> > >             <page-size-bytes>1048576</page-size-bytes>
> > >
> > >
> > > <message-counter-history-day-limit>10</message-counter-history-day-l
> > > im
> > > it>
> > >
> > >             <address-full-policy>PAGE</address-full-policy>
> > >
> > >         </address-setting>
> > >
> > >       </address-settings>
> > >
> > >    </core>
> > >
> > > </configuration>
> > >
> > >
> > > Regards,
> > >
> > > Albaasith Ahamed
> > >
> > >
> > >
> > > Albaasith Ahamed
> > >
> > >
> > > *https://www.amlakint.com <https://www.amlakint.com> *P.O Box 28088
> > > Riyadh 11437
> > >
> > >
> > > albaasi...@amlakint.com
> > > <https://www.amlakint.com/> <https://www.facebook.com/Amlakint/>
> > > <https://www.twitter.com/amlakint>
> > > <https://www.linkedin.com/company/amlakint>
> > > <https://www.youtube.com/channel/UCTSNh9_vD5jn1SW6Sjs-9MQ>
> > > _
> > >
> > >
> > >
> > >
> > > Disclaimer
> > > This e-mail (including any file attachment) contains confidential
> > > information and/or may also be legally privileged.
> > > It is intended solely for the use of the named addressees and any
> > > unauthorized dissemination or use by any other person or entity is
> > > strictly prohibited. If you are not the intended recipient you
> > > should not transmit, copy, print, disclose or otherwise make use of
> > > and/or place any reliance on this e-mail and its contents. If you
> > > have received this e-mail in error, you should immediately notify
> > > the sender by return e-mail and delete all copies from your system.
> > > The views, opinion or advice as may be contained herein are those of
> > > the sending individual and do not necessary represent that of AMLAK
> > > International or bind AMLAK International. E-mails can be corrupted,
> > > altered or falsified and AMLAK International  shall not be liable
> > > for any alteration or falsification on this e-mail.
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@activemq.apache.org
> > For additional commands, e-mail: users-h...@activemq.apache.org For
> > further information, visit: https://activemq.apache.org/contact
> >
> >
>
>
>
>



Reply via email to