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