Which configuration is "better" really depends on your use-case. Failback is a nice feature when you have, for example, invested more money into the hardware of your primary broker since failback ensures the primary will take over as soon as it comes back online.
Keep in mind that running a single pair of brokers with replication is not recommended due to the risk of split brain. The recommended approach to mitigate split brain is by using ZooKeeper. See the "zookeeper-single-pair-failback" example for more details on that. Justin On Fri, Dec 22, 2023 at 2:13 PM John Lilley <john.lil...@redpointglobal.com.invalid> wrote: > Thanks again for the help! > > > FYI I had to add this line to the master’s broker.xml from the example you > mentioned: > > > > <check-for-live-server>true</check-for-live-server> > > > > Otherwise, a failed master that came back would start to fight with the > still-active slave. > > > > I think I could have also told the slave to “fail-back”? Is there a > recommendation for which is better? > > > > John > > > > > [image: rg] <https://www.redpointglobal.com/> > > John Lilley > > Data Management Chief Architect, Redpoint Global Inc. > > 34 Washington Street, Suite 205 Wellesley Hills, MA 02481 > > *M: *+1 7209385761 <+1%207209385761> | john.lil...@redpointglobal.com > > *From:* Justin Bertram <jbert...@apache.org> > *Sent:* Thursday, December 21, 2023 3:42 PM > *To:* users@activemq.apache.org > *Subject:* Re: Looking for HA/replication boilerplate broker.xml and > advice > > > > **** [Caution] This email is from an external source. Please use caution > responding, opening attachments or clicking embedded links. **** > > > > > ...is it possible to run both master and slave on the same host, for > dev/test? > > > > Yes. > > > > > Like… configure them with different ports? > > > > Yes. This is what the examples do which I mentioned in my previous email. > > > > You can also use the --port-offset switch with the create command. > > > > > > Justin > > > > On Thu, Dec 21, 2023 at 4:36 PM John Lilley < > john.lil...@redpointglobal.com.invalid> wrote: > > Follow up question: is it possible to run both master and slave on the > same host, for dev/test? > > Like… configure them with different ports? > > Thanks > > John > > > > [image: rg] > <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.redpointglobal.com%2f&c=E,1,d_k8uFQLvdcbwVXF9dBwVRuLOnnnAIAoM3Jv3uUG5zr_o_vvFSzAuxMjv0GmhSyd2QND75uDoO8klh83_xBW-O68X2u6v9hYK06kHtBxXML-5OTwo3xNxo8,&typo=1> > > *John Lilley * > > *Data Management Chief Architect, Redpoint Global Inc. * > > 34 Washington Street, Suite 205 Wellesley Hills, MA 02481 > > *M: *+1 7209385761 <+1%207209385761> | john.lil...@redpointglobal.com > > > PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is > confidential and is intended solely for the use of the individual(s) to > whom it is addressed. If you believe you received this e-mail in error, > please notify the sender immediately, delete the e-mail from your computer > and do not copy, print or disclose it to anyone else. If you properly > received this e-mail as a customer, partner or vendor of Redpoint, you > should maintain its contents in confidence subject to the terms and > conditions of your agreement(s) with Redpoint. > > > PLEASE NOTE: This e-mail from Redpoint Global Inc. (“Redpoint”) is > confidential and is intended solely for the use of the individual(s) to > whom it is addressed. If you believe you received this e-mail in error, > please notify the sender immediately, delete the e-mail from your computer > and do not copy, print or disclose it to anyone else. If you properly > received this e-mail as a customer, partner or vendor of Redpoint, you > should maintain its contents in confidence subject to the terms and > conditions of your agreement(s) with Redpoint. >