[rabbitmq-discuss] Clustering over a WAN
Matthew Sackman
matthew at rabbitmq.com
Mon Feb 28 15:51:27 GMT 2011
On Mon, Feb 28, 2011 at 03:27:42PM +0000, Chris Hampson wrote:
> We're currently attempting to maintain a RabbitMQ cluster over a WAN between some of our sites, 2 in the US, one in the UK and another in India.
That's a bad idea.
> For the most part this seems to be working fine, but it seems a little fragile and we can't seem to get it to recover from failures very well.
Correct. Mnesia, which Rabbit uses to store all sorts of data (though
not messages), copes poorly with network partitions.
> If anyone can provide any advice to aid our situation we'd be most
> grateful (even if it is "don't do that you loony, separate them out
> and shovel messages between sites when necessary")
Yeah, the latter's a fair summary of my advice on this ;) We do state
quite prominantly that clustering is not for HA, though I admit we state
it on http://www.rabbitmq.com/pacemaker.html rather than
http://www.rabbitmq.com/clustering.html which is not really as helpful
as it could be.
The problem is that mnesia, and by extension Rabbit, goes for the
Consistency and Availability part of the CAP triangle, and so just does
not cope well with partitions ocurring.
http://en.wikipedia.org/wiki/CAP_theorem
We are working on solving some of these problems in a number of
different ways. If the shovel is a viable solution then I'd recommend
you use that, otherwise please let us know some more details of your use
case and we should be able to advise further.
Best wishes,
Matthew
More information about the rabbitmq-discuss
mailing list