Test mirror between a main and replica brokers with default options Main: created a broker with command: $ amq-broker-7.8.0/bin/artemis create main --user admin --password admin --allow-anonymous added to the config: Replica: created a broker with command: $ artemis create --user admin --password admin --allow-anonymous ~/replica added to the config: tcp://0.0.0.0:6700?autoStart=true;tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=AMQP;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpMinLargeMessageSize=102400;amqpDuplicateDetection=true Produce messages on main broker using: $ main/bin/artemis producer Connection brokerURL = tcp://localhost:61616 Producer ActiveMQQueue[TEST], thread=0 Started to calculate elapsed time ... Producer ActiveMQQueue[TEST], thread=0 Produced: 1000 messages Producer ActiveMQQueue[TEST], thread=0 Elapsed time in second : 2 s Producer ActiveMQQueue[TEST], thread=0 Elapsed time in milli second : 2762 milli seconds Verify there are message on main broker: $ main/bin/artemis queue stat --queueName TEST Connection brokerURL = tcp://localhost:61616 |NAME |ADDRESS |CONSUMER_COUNT |MESSAGE_COUNT |MESSAGES_ADDED |DELIVERING_COUNT |MESSAGES_ACKED |SCHEDULED_COUNT |ROUTING_TYPE | |TEST |TEST |0 |1000 |1000 |0 |0 |0 |ANYCAST | Verify the messages were replicated to replica: $ main/bin/artemis queue stat --url tcp://10.0.134.16:61616 --queueName TEST Connection brokerURL = tcp://10.0.134.16:61616 |NAME |ADDRESS |CONSUMER_COUNT |MESSAGE_COUNT |MESSAGES_ADDED |DELIVERING_COUNT |MESSAGES_ACKED |SCHEDULED_COUNT |ROUTING_TYPE | |TEST |TEST |0 |1000 |1000 |0 |0 |0 |ANYCAST | Consume messages on main: $ main/bin/artemis consumer --url tcp://10.0.132.32:61616 Connection brokerURL = tcp://10.0.132.32:61616 Consumer:: filter = null Consumer ActiveMQQueue[TEST], thread=0 wait until 1000 messages are consumed Received 1000 Consumer ActiveMQQueue[TEST], thread=0 Consumed: 1000 messages Consumer ActiveMQQueue[TEST], thread=0 Elapsed time in second : 0 s Consumer ActiveMQQueue[TEST], thread=0 Elapsed time in milli second : 150 milli seconds Consumer ActiveMQQueue[TEST], thread=0 Consumed: 1000 messages Consumer ActiveMQQueue[TEST], thread=0 Consumer thread finished Check messages were consumed on main: $ main/bin/artemis queue stat --url tcp://10.0.132.32:61616 --queueName TEST Connection brokerURL = tcp://10.0.132.32:61616 |NAME |ADDRESS |CONSUMER_COUNT |MESSAGE_COUNT |MESSAGES_ADDED |DELIVERING_COUNT |MESSAGES_ACKED |SCHEDULED_COUNT |ROUTING_TYPE | Check if messages were removed from replica: $ main/bin/artemis queue stat --url tcp://10.0.134.16:61616 --queueName TEST Connection brokerURL = tcp://10.0.134.16:61616 |NAME |ADDRESS |CONSUMER_COUNT |MESSAGE_COUNT |MESSAGES_ADDED |DELIVERING_COUNT |MESSAGES_ACKED |SCHEDULED_COUNT |ROUTING_TYPE |