0
votes

The following is my ActiveMQ setup:

I have two AMQ broker which are configured with failover. I have 40 producer but only on consumer.

Now the problem: From time to time, one of the producer lost the connection to the master broker. The failover reacts and the producer gets a new connection to the slave which gets the messages. So far so good. But the consumer does not have the problem, he consumes still the messages from the master. He does not know, that the slave has also some messages.

How can i now solve the problem woth losing those messages thay are sent to the slave?

Thank in advance

1
what version of ActiveMQ are you using? master/slave failover is no longer recommended or supported in active development.Martin Serrano
I use version 5.10.0. The failover i use lok like -> failover:(tcp://host1:61616,tcp://host2:61616)?randomize=falsepiet
I would recommend you configure a network of brokers. That way, your brokers will be connected as well, and it no longer matters which broker your producers and consumers connect to - the messages will get propagated across the network.Ben Damer
@krautmeyer can you add that as an answer? It's the way to go.Petter Nordlander

1 Answers

1
votes

I would recommend you configure a network of brokers. That way, your brokers will be connected as well, and it no longer matters which broker your producers and consumers connect to - the messages will get propagated across the network.