activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Master/Slave works but no data is exchanged between the nodes (MySQL backend)
Date Mon, 17 Jun 2013 19:37:38 GMT
Make sure that your consumers/producers also properly failover to the
correct slaves.


On Mon, Jun 17, 2013 at 1:31 PM, Clement Buisson <
clement.buisson@lookout.com> wrote:

> Arf, my badŠ the current configuration is:
> I have 2 brokers. Broker A and Broker B with both one master A1/B1 and its
> slave A2/B2
>
> I am using masterslave:/ instead of failover:/
>
> A1:masterslave:(tcp://B1:62626,tcp://B2:62627)
> A2:masterslave:(tcp://B1:62626,tcp://B2:62627)
>
> B1:masterslave:(tcp://A1:61616,tcp://A2:61617)
> B2:masterslave:(tcp://A1:61616,tcp://A2:61617)
>
>
> Thanks,
> Clément
>
>
> On 6/15/13 4:17 PM, "Christian Posta" <christian.posta@gmail.com> wrote:
>
> >Why is B1 connected to itself, and B2 is also connected to itself?
> >
> >Not sure what exactly the network topology is you're going for. But just
> >sending messages by itself won't cause anything to be forwarded (unless
> >you
> >explicitly specify static destinations). In general, to rely on the
> >dynamic
> >demand forwarding, you must have consumers on one of the brokers to
> >establish the demand.
> >
> >
> >On Fri, Jun 14, 2013 at 5:32 PM, Clement Buisson <
> >clement.buisson@lookout.com> wrote:
> >
> >> Hi,
> >>
> >> I am trying to setup a cluster of ActiveMQ servers (5.8). So far, I
> >>have 4
> >> nodes:
> >>
> >> A1 which has its networkConnector set to
> >> masterslave:(tcp://B1:62626,tcp://B2:62627)
> >> B1: masterslave:(tcp://B1:62626,tcp://B2:62627)
> >> A2: masterslave:(tcp://A1:61616,tcp://B2:61617)
> >> B2: masterslave:(tcp://A1:61616,tcp://B2:61617)
> >>
> >> I can see in the logs that all of these 4 servers can talk to each
> >>others,
> >> they noticed when a Master goes down and are switching to the slave
> >> automatically, which is cool.
> >> But, they never exchange any data! When I send a new topic/queue to one
> >>of
> >> the masters, the message goes nowhere else, it sits on that host and
> >>none
> >> of the others nodes are aware of it. Interestingly, nothing goes to the
> >> activemq database either, the ActiveMQ process creates the tables when
> >>it
> >> starts so the process can reach the database.
> >>
> >> Not sure what to look for now. I did a bunch of Googling without
> >>success.
> >> Anyone has any ideas?
> >>
> >> Thanks,
> >> Clement
> >>
> >
> >
> >
> >--
> >*Christian Posta*
> >http://www.christianposta.com/blog
> >twitter: @christianposta
>
>


-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message