qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Chase <adam.cha...@gmail.com>
Subject Re: About broker list
Date Wed, 11 Feb 2009 16:17:09 GMT
On Wed, Feb 11, 2009 at 10:46 AM, chenta lee <chenta@gmail.com> wrote:
> On Wed, Feb 11, 2009 at 10:56 PM, Adam Chase <adam.chase1@gmail.com> wrote:
>
>> I have been using this.
>>
>> There is a version of connect that can take a set of qpid servers
>> (urls).  You actually end up connecting to one of them.
>>
>
> Do you remember which version it is? I know we can specify the broker list
> via amqp-url. But I really don't know how to apply it in c++ client.

I am using M4.
Url url("amqp:tcp:192.168.11.11:5672");

vector<Url> urlvect;
urlVect.push_back(url);

FailoverManager fm;
fm.connect(urlvect);






>
>>
>> You need to install openais to do clustering (libraries and configure
>> it and start aisexec on each server).  When qpid is built with cpg
>> (part of openais) qpid can take a group either in the command line or
>> via the config file.  The qpid servers broadcast state to one another
>> via cpg/openais which uses multicast.  The set of commands you issue
>> to either server are broadcast to the other.  If one goes down and
>> then comes back up the server state is quickly resync'd.  The
>> performance is slightly less than running in a non-clustered mode, but
>> is still quite good in my opinion.  You can use a FailoverManager from
>> the client to handle the Transport exceptions you'll get when the
>> server you are connected to goes down.
>>
>
> Can I assign a list of brokers to FailoverManager at first? Or I have to do
> that in the exception handler? I found a piece code in FailoverManager.cpp
> which can use a  vector of broker url to reconnect to other borkers.
>
> Thank you.
>
>
>>
>> Adam
>>
>> On Wed, Feb 11, 2009 at 6:51 AM, chenta <chenta@gmail.com> wrote:
>> >
>> > I construct a broker cluster and I want to use c++ client to connect it.
>> >
>> > I have three questions:
>> > 1. How do clients join the cluster? If the client connect to one of the
>> > broker in the cluster, does it also means that it connect to the cluster?
>> > Can I use cluster name to join to cluster?
>> > 2. How do I specified a broker list to c++ client?
>> > 3. Do we need a broker list to make failover exchange works?
>> >
>> > Thanks,
>> > Chenta
>> > --
>> > View this message in context:
>> http://n2.nabble.com/About-broker-list-tp2308196p2308196.html
>> > Sent from the Apache Qpid users mailing list archive at Nabble.com.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > Apache Qpid - AMQP Messaging Implementation
>> > Project:      http://qpid.apache.org
>> > Use/Interact: mailto:users-subscribe@qpid.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message