I can't think of a reason why you couldn't have each of the three be a
'master' w/a corresponding slave. This is the kind of cluster topology I
thought you were after. 

http://www.sonicsoftware.com/products/sonicmq/index.ssp

Note in the diagram how the primary brokers in each of the clusters has a
passive slave that is backing it up.  You should be able to do the same with
ActiveMQ. However, as James mentioned, maybe all you need is one
master/slave pair? 

Joe   


ktecho wrote:
> 
> Thanks, Joe. Only a few more questions:
> 
> Can't I have brokers that are all of them "Master" brokers? I need all of
> them to be active, but provide a backup for the other brokers.
> 
> So if I have:
> - Broker-1
> - Broker-2
> - Broker-3
> 
> All the 3 brokers are active and receiving messages from producers, and
> dispatching them to consumers.
> 
> If broker-2 fails, broker-1 and broker-3 will remain active and dispatch
> the broker-2's messages to consumers. That way I don't loose any message.
> 
> Can this be done?
> 
> Thanks a lot,
> 
> Luis Miguel García
> 
> 
> 
> ttmdev wrote:
>> 
>> ActiveMQ gives you this capability via the Pure, Shared File System, or
>> JDBC Master/Slave configurations.
>> 
>> These configurations allow you to set up a network of brokers that is
>> comprised of 'master' brokers, where each master is backed up by one or
>> more passive 'slave' brokers. If a master were to fail, one of the slaves
>> would jump into action and take over for the master. Your clients
>> (producers, consumers) can be configured to failover to the slave
>> if-and-when the master were to fail. 
>> 
>> Brokers can balance the message load across other brokers that have
>> appropriate consumers and consumers can be clustered so that you can
>> further balance the load across multiple consumers.    
>> 
>> Hope this helps - Joe
>>   
>> 
>> ktecho wrote:
>>> 
>>> Hi,
>>> 
>>> I have been reading the ActiveMQ documentation but something isn't
>>> entirelly clear to me.
>>> 
>>> I need to setup a network of brokers with the following requirements:
>>> - I need all of them to be able to attend requests, to provide Load
>>> Balancing between all the brokers / servers.
>>> - I need that if one of them fails, its messages can be consumed by
>>> other brokers.
>>> 
>>> Can this be done actually with ActiveMQ? If not, what's the closer
>>> approach to this scenary I have in mind?
>>> 
>>> Thanks a lot in advance,
>>> 
>>> Luis Miguel García
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/High-Availability-and-Load-Balancing-tf4838228s2354.html#a13844143
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to