You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by He...@systema.com on 2024/02/08 12:30:32 UTC

Antwort: [Ext] Re: Is a federation of Hub-spoke broker topology possible with Artemis?

Hello folks,

I am trying for some time a symmetric configuration without explicit 
address federation. 
Seemingly it works until a client failover changes the direction of 
addressing. 
Then the address memory in the artemis broker grows despite of the message 
TTL settings. 
The broker configuration is a simple cluster connection and probably wrong 
for the intended purpose.
I now think that address federation is what I had been missing. Is this 
true?
The example in the federation documentation is too complex for me, though. 

How would address federation for a symmetric or call it ?two broker mesh? 
for all addresses look like?

Best Regards

Herbert





Von:    "Justin Bertram" <jb...@apache.org>
An:     "users@activemq.apache.org" <us...@activemq.apache.org>
Datum:  07.02.2024 15:19
Betreff:        [Ext] Re: Is a federation of Hub-spoke broker topology 
possible with Artemis?



The documentation does mention using a "hub and spoke" federation topology
[1]. However, as you noted, there's no example configuration. I wonder if
this may be down to the "max-hops" setting you're using.

Can you provide the broker.xml from your brokers attempting to use hub &
spoke?


Justin

[1]
https://activemq.apache.org/components/artemis/documentation/latest/federation-address.html#configuring-downstream-federation


On Wed, Feb 7, 2024 at 6:23?AM Devriendt, Erik
<er...@siemens.com.invalid> wrote:

> I tried to set up a small Hub-Spoke topology of 3 Artemis brokers. Each 
on
> a different machine, and expected to be able to configure address
> federation.
> I have 3 brokers: A, B and C. If I configure them in a full mesh 
topology,
> address federation works, that is, a consumer on any of the broker 
machines
> receives messages from any producer on any of the broker machines.
> However, if I configure them as A ? B ? C, where A-B and B-C have
> symmetrical connections, a consumer on A does not receive messages from 
a
> producer on C.
> The topic on which producer and consumer work, is created dynamically 
(so
> not in the broker.xml files) by the consumer or producer.
>
> The examples of the Artemis software only contains examples of full mesh
> federations. Are there any examples available on the internet of a
> federation with hub-spoke topology?
> Or is it not possible to use a hup-spoke topology for federation?
>





Re: [Ext] Re: Is a federation of Hub-spoke broker topology possible with Artemis?

Posted by Justin Bertram <jb...@apache.org>.
Herbert, please start a new thread about your issue. It seems more like a
clustering issue than a federation one. In any case, this thread is about
Erik's hub & spoke federation issue.

Thanks!


Justin

On Thu, Feb 8, 2024 at 6:31 AM <He...@systema.com> wrote:

> Hello folks,
>
> I am trying for some time a symmetric configuration without explicit
> address federation.
> Seemingly it works until a client failover changes the direction of
> addressing.
> Then the address memory in the artemis broker grows despite of the message
> TTL settings.
> The broker configuration is a simple cluster connection and probably wrong
> for the intended purpose.
> I now think that address federation is what I had been missing. Is this
> true?
> The example in the federation documentation is too complex for me, though.
> How would address federation for a symmetric or call it “two broker mesh”
> for all addresses look like?
>
> Best Regards
>
> Herbert
>
> ------------------------------
>
> *Herbert Helmstreit*
> Senior Software Engineer
>
> Phone: +49 941 / 7 83 92 36
> Herbert.Helmstreit@systema.com
>
> www.systema.com
>
> [image: LinkedIn] <https://www.linkedin.com/company/systema-gmbh/>[image:
> Facebook] <https://de-de.facebook.com/SYSTEMA.automation/>[image: XING]
> <https://www.xing.com/pages/systemagmbh>
>
> SYSTEMA
> Systementwicklung Dipl.-Inf. Manfred Austen GmbH
>
> Manfred-von-Ardenne-Ring 6 | 01099 Dresden
> HRB 11256 Amtsgericht Dresden | USt.-ID DE 159 607 786
> Geschäftsführer: Manfred Austen, CEO und Dr. Ulf Martin, COO
>
> P Please check whether a printout of this e-mail is really necessary.
>
>
>
>
> Von:        "Justin Bertram" <jb...@apache.org>
> An:        "users@activemq.apache.org" <us...@activemq.apache.org>
> Datum:        07.02.2024 15:19
> Betreff:        [Ext] Re: Is a federation of Hub-spoke broker topology
> possible with Artemis?
> ------------------------------
>
>
>
> The documentation does mention using a "hub and spoke" federation topology
> [1]. However, as you noted, there's no example configuration. I wonder if
> this may be down to the "max-hops" setting you're using.
>
> Can you provide the broker.xml from your brokers attempting to use hub &
> spoke?
>
>
> Justin
>
> [1]
>
> https://activemq.apache.org/components/artemis/documentation/latest/federation-address.html#configuring-downstream-federation
>
> On Wed, Feb 7, 2024 at 6:23 AM Devriendt, Erik
> <er...@siemens.com.invalid> wrote:
>
> > I tried to set up a small Hub-Spoke topology of 3 Artemis brokers. Each
> on
> > a different machine, and expected to be able to configure address
> > federation.
> > I have 3 brokers: A, B and C. If I configure them in a full mesh
> topology,
> > address federation works, that is, a consumer on any of the broker
> machines
> > receives messages from any producer on any of the broker machines.
> > However, if I configure them as A – B – C, where A-B and B-C have
> > symmetrical connections, a consumer on A does not receive messages from a
> > producer on C.
> > The topic on which producer and consumer work, is created dynamically (so
> > not in the broker.xml files) by the consumer or producer.
> >
> > The examples of the Artemis software only contains examples of full mesh
> > federations. Are there any examples available on the internet of a
> > federation with hub-spoke topology?
> > Or is it not possible to use a hup-spoke topology for federation?
> >
>
>
>
>

RE: Antwort: [Ext] Re: Is a federation of Hub-spoke broker topology possible with Artemis?

Posted by "Devriendt, Erik" <er...@siemens.com.INVALID>.
Herbert, you might try the hub and one of the spoke broker.xml that I posted in this topic.
You should then publish and subscribe on topics with a name that starts with ‘cms’, if you don’t want to change the address-policy:
````
            <address-policy name="address-federation" max-hops="3" >
               <include address-match="cms#" />
            </address-policy>
````
Better then also remove the max-hops attribute, or else reduce it to 1.