<html><body bgcolor="#FFFFFF">Jason,<br/><br/>Thank you for your response.<br/><br/>You write: "...This is being addressed by the mirrored queues feature that should be available soon."<br/><br/>When will this feature be available?<br/><br/>Once available, it looks like things will be pretty reliable, even if a node in the cluster fails. <br/><br/>In such a case, will the use of Pacemaker etc still be necessary? <br/><br/>Thanks,<br/>Shalom.<p>Sent via BlackBerry from T-Mobile</p><hr/><div><b>From: </b> "Jason J. W. Williams" <jasonjwwilliams@gmail.com>
</div><div><b>Date: </b>Mon, 18 Jul 2011 02:11:09 -0600</div><div><b>To: </b>csharpplusproject<csharpplusproject@gmail.com></div><div><b>Cc: </b>Alvaro Videla<videlalvaro@gmail.com>; rabbitmq-discuss@lists.rabbitmq.com<rabbitmq-discuss@lists.rabbitmq.com></div><div><b>Subject: </b>Re: [rabbitmq-discuss] RabbitMQ -- communicate between 3 different machines?</div><div><br/></div><div>Hi Shalom,</div><div><br></div><div>They will be considered independent unless you cluster them. In which case, the servers will appear as a single unit with the same queues, exchanges and bindings. Where this breaks down is when a server in the cluster fails. While queues are accessible from any cluster node, each queue is only stored on one node (the cluster tries to evenly distribute the queues as they are declared). So when a cluster node fails, any queues it was the master for disappear until the node is returned to service. This is being addressed by the mirrored queues feature that should be available soon. </div><div><br></div><div>Does that answer your question?</div><div><br></div><div>-J<br><br>Sent via iPhone<div><br></div><div>Is your email Premiere?</div></div><div><br>On Jul 17, 2011, at 19:07, csharpplusproject <<a href="mailto:csharpplusproject@gmail.com">csharpplusproject@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
Hi Alvaro,<br>
<br>
Thank you for the link and your book recommendation.<br>
<br>
Just so that I get things straight, if I install RabbitMQ on 2 different IPs -- say, {192.168.0.1, 192.168.0.2} -- will both of these be considered DIFFERENT, independent RabbitMQ servers?<br>
Meaning, each server will carry on its own tasks, messages etc?<br>
<br>
Thanks,<br>
Shalom.<br>
<br>
-----Original Message-----<br>
<b>From</b>: Alvaro Videla <<a href="mailto:Alvaro%20Videla%20%3cvidelalvaro@gmail.com%3e"><a href="mailto:videlalvaro@gmail.com">videlalvaro@gmail.com</a></a>><br>
<b>To</b>: csharpplusproject <<a href="mailto:csharpplusproject%20%3ccsharpplusproject@gmail.com%3e"><a href="mailto:csharpplusproject@gmail.com">csharpplusproject@gmail.com</a></a>><br>
<b>Cc</b>: Jason J. W. Williams <<a href="mailto:%22Jason%20J.%20W.%20Williams%22%20%3cjasonjwwilliams@gmail.com%3e"><a href="mailto:jasonjwwilliams@gmail.com">jasonjwwilliams@gmail.com</a></a>>, <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com"><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></a><br>
<b>Subject</b>: Re: [rabbitmq-discuss] RabbitMQ -- communicate between 3 different machines?<br>
<b>Date</b>: Mon, 18 Jul 2011 02:21:27 +0200<br>
<br>
Hi Shalom,
<br>
<br>
You can read the guide here: <a href="http://www.rabbitmq.com/pacemaker.html"><a href="http://www.rabbitmq.com/pacemaker.html">http://www.rabbitmq.com/pacemaker.html</a></a>
<br>
<br>
Not that I like to do self advertisement, but you can also read our book about RabbitMQ that discusses clustering too: <a href="http://bitly.com/rabbitmq"><a href="http://bitly.com/rabbitmq">http://bitly.com/rabbitmq</a></a>
<br>
<br>
Cheers,
<br>
<br>
Alvaro
<br>
On Jul 18, 2011, at 2:11 AM, csharpplusproject wrote:
<br>
<blockquote type="CITE">
Hi Alavro,<br>
<br>
Thank you for your response.<br>
<br>
Yes, I confirm that I am successful connecting to my server (192.168.0.1) from my 2 worker clients (192.168.0.2, 192.168.0.3) by specifying the server's IP.<br>
<br>
Yet, this brings down another question -- in this case, I have a single server (192.168.0.1) and 2 worker clients (192.168.0.2, 192.168.0.3).<br>
<br>
Since my server is a 'single point of failure', what happens if my server dies? How does RabbitMQ handle such a case?<br>
<br>
Is there a way to make things more reliabile? (for instance, have multiple nodes that will all have the same contents of <b>192.168.0.1</b> and thus provide reliability in case the main server dies...).<br>
<br>
I appreciate your help.<br>
<br>
Best,<br>
Shalom.<br>
<br>
<br>
-----Original Message-----<br>
<b>From</b>: Alvaro Videla <<a href="mailto:Alvaro%20Videla%20%3cvidelalvaro@gmail.com%3e"><a href="mailto:videlalvaro@gmail.com">videlalvaro@gmail.com</a></a>><br>
<b>To</b>: csharpplusproject <<a href="mailto:csharpplusproject%20%3ccsharpplusproject@gmail.com%3e"><a href="mailto:csharpplusproject@gmail.com">csharpplusproject@gmail.com</a></a>><br>
<b>Cc</b>: Jason J. W. Williams <<a href="mailto:%22Jason%20J.%20W.%20Williams%22%20%3cjasonjwwilliams@gmail.com%3e"><a href="mailto:jasonjwwilliams@gmail.com">jasonjwwilliams@gmail.com</a></a>>, <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com"><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></a><br>
<b>Subject</b>: Re: [rabbitmq-discuss] RabbitMQ -- communicate between 3 different machines?<br>
<b>Date</b>: Mon, 18 Jul 2011 01:20:23 +0200<br>
<br>
Hi Shalom, <br>
<br>
Start RabbitMQ on server 192.168.0.1. <br>
<br>
Then go to say server 192.168.0.2 and start one of the workers. Do the same on server 192.168.0.3 (Change the IP according to your configuration of course). <br>
<br>
Then on the workers code you have to specify on which host RabbitMQ is running. For example on the first tutorial you see this code: <br>
<br>
<pre>connection = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))
</pre>
<br>
<br>
Change "localhost" for the IP where RabbitMQ is running. Do the same for the message publisher. <br>
<br>
See the documentation here: <a href="http://pika.github.com/connecting.html#connection-parameters"><a href="http://pika.github.com/connecting.html#connection-parameters">http://pika.github.com/connecting.html#connection-parameters</a></a> to understand the parameters passed to a new connection. <br>
<br>
Cheers, <br>
<br>
Alvaro <br>
On Jul 18, 2011, at 1:12 AM, csharpplusproject wrote: <br>
<blockquote type="CITE">
Hi Jason,<br>
<br>
Thank you for your assistance.<br>
<br>
Suppose that the RabbitMQ server is installed on host 192.168.0.1;<br>
<br>
How do I establish a connection between my 2 worker clients (192.168.0.2, 192.168.0.3), and the RabbitMQ server? (I'm using the <b>pika</b> client)<br>
<br>
Thanks,<br>
Shalom.<br>
<br>
-----Original Message-----<br>
<b>From</b>: Jason J. W. Williams <<a href="mailto:%22Jason%20J.%20W.%20Williams%22%20%3cjasonjwwilliams@gmail.com%3e"><a href="mailto:jasonjwwilliams@gmail.com">jasonjwwilliams@gmail.com</a></a>><br>
<b>To</b>: Shalom Rav <<a href="mailto:Shalom%20Rav%20%3ccsharpplusproject@gmail.com%3e"><a href="mailto:csharpplusproject@gmail.com">csharpplusproject@gmail.com</a></a>><br>
<b>Cc</b>: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com"><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></a><br>
<b>Subject</b>: Re: [rabbitmq-discuss] RabbitMQ -- communicate between 3 different machines?<br>
<b>Date</b>: Sun, 17 Jul 2011 16:50:06 -0600<br>
<br>
<pre>Hi Shalom,
The connection is not between the machines/clients themselves, but
rather between the clients and the server running the RabbitMQ broker.
You should be able to bind the clients to the queues you're using in
the examples and RMQ will round robin incoming messages between them.
-J
On Sun, Jul 17, 2011 at 3:26 PM, Shalom Rav <<a href="mailto:csharpplusproject@gmail.com"><a href="mailto:csharpplusproject@gmail.com">csharpplusproject@gmail.com</a></a>> wrote:
> Using a SINGLE MACHINE, I have successfuly run the first 4 examples
> that are on the RabbitMQ website.
>
> Now, I'd like to test THE SAME EXAMPLES using 3 different machines
> that are connected in a network.
>
> Suppose that the RabbitMQ server is installed ONLY on host
> 192.168.0.1;
>
> And suppose that I'd like to use machines {192.168.0.2, 192.168.0.3}
> as *workers* (they DO NOT have the RabbitMQ server installed on
> them).
>
> Taking for instance the first example {send.py, receive.py} -- how do
> I establish the connection between the three machines?
>
>_______________________________________________
> rabbitmq-discuss mailing list
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com"><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></a>
> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></a>
>
</pre>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com"><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></a><br>
</blockquote>
<br>
Sent form my Nokia 1100 <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
Sent form my Nokia 1100
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div></blockquote></body></html>