[rabbitmq-discuss] create a policy for concrete nodes

Tim Watson tim at rabbitmq.com
Fri May 17 14:55:13 BST 2013


Hi,

On 17 May 2013, at 13:52, Slyth wrote:
> The first machine should be the "master". 

RabbitMQ has no concept of a master node. When queues are mirrored across multiple nodes, one of the nodes is chosen to be the "queue master" for a mirrored queue, but that node can freely die and one of the queue slaves will take over (as the master) on another node. The master node for one queue, might not be master for another queue. Not all queues have to be mirrored.

> On this one are all queues and so
> on created and this is the one who is connected to the AMQP server and
> perhaps some other services.

RabbitMQ *is* the AMQP server, so what do you mean "the one who is connected to the AMQP server" exactly? I'm really struggling to understand what you're trying to do.

> Therefore this machine has to be safed by a
> mirror (one or better two machines).


Well clustering two RabbitMQ servers will not mirror a whole machine. If you enable HA/mirror mode, then it will mirror "the contents of some queues", where 'some queues' means any queue matching the policy.

> Is that a possible scenario? 

It is still very unclear what you are trying to achieve. I do apologise if that's due to the language barrier. I'd really like to be able to help more, but I'm still struggling to understand the basic requirements. The picture you've sent over shows 1 node acting as a mirror for a cluster. That's not how active/mirror queues work at, nor does it represent a resilient architecture, which I'm guessing is what your boss is trying to achieve.

> If it is, I would creat a cluster with 3 machines. And on the first I would
> create queues with configurations we need. Then I would create on all tree
> machines scripts for sending and receiving messages from the queues.
[snip]
> And
> then at least I have to create a policy for the mirror.

I have no idea what your trying to do here. Why do you need to create scripts for sending messages around a cluster?

> By this step I'm uncertain.

You're not the only one. I have absolutely *no idea* what you're trying to achieve. I have this suspicion that the requirement your boss has given you is to replicate application data across multiple machines, using a message broker (like RabbitMQ) as the communications fabric. But that might not be it. You might be trying to design a messaging application and your boss wants to design it to avoid message loss. It's really not clear what the fundamental purpose is here. Where does the data come from? What are you trying to do with the data? What other applications are involved? Where does RabbitMQ (or any other messaging product) fit in to this?

What is very clear is that you're struggling with messaging concepts in general, as well as understanding clustering and HA. I would *very* strongly suggest that you consider contacting info at rabbitmq.com and discussing the possibility of getting a regional PSO representative on the phone, to talk about your requirements and whether or not the company you're working for would benefit from some short term consultancy. If you're after a messaging broker, then it's very likely indeed that RabbitMQ would be ideal for your needs, but I'm not sure I can offer any more help unless you're able to articulate the problem in way I can understand. 

Regards,
Tim Watson





More information about the rabbitmq-discuss mailing list