Hi JB, Thanks for the reply but no. I do use that option but in fact, if I used this in this scenario it would have the opposite effect as the super-fast links go through more brokers than the slow one.
To simplify the problem, just imagine 2 brokers connected to each other over 2 network links, one fast (primary) and the other slow (backup/failover). I only want to use the failover link when the primary is in a failed state, meaning that I want to go back to the fast link on recovery. I feel like I have looked at every option but just want to confirm whether this can be done. Thanks again ________________________________ From: Jean-Baptiste Onofre <j...@nanthrax.net> Sent: 01 November 2021 16:46 To: users@activemq.apache.org <users@activemq.apache.org> Subject: Re: Network of brokers and priority network links Hi Paul, If you are using ActiveMQ 5.x, you can decrease network priority to allow local consumers first and fallback to remote brokers else. Is it what you are looking for ? Regards JB > Le 1 nov. 2021 à 17:37, Paul Burgess <pburg...@peersoftware.com> a écrit : > > Hi, > > I'm trying to configure a network of brokers, where links between the brokers > work as a 'Primary' and 'Secondary/Failover' pair, much like failover > transport connections and priority URIs. > > I have links between sites that are fast and stable, that I want to be used > as a priority, with a backup link to be used only when there is a failure. > After a failure, when the primary link becomes active, I need traffic to > fail-back to that primary link. > > Is there a way I can achieve this? I have tried using the masterslave feature > (although I know it's not really designed for this functionality), which > works under failure, but does not fail-back to the primary link. > > I have read somewhere about setting consumer priorities for a specific > broker, which I think would work, but I can't see anywhere how to set this in > configuration files. > > Maybe I missed something in the documentation? Perhaps there's a way to set a > desire route? Any help is greatly appreciated. > > Many thanks > > Paul