<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Shalom,<div><br></div><div>You can read the guide here: <a href="http://www.rabbitmq.com/pacemaker.html">http://www.rabbitmq.com/pacemaker.html</a></div><div><br></div><div>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">http://bitly.com/rabbitmq</a></div><div><br></div><div>Cheers,</div><div><br></div><div>Alvaro</div><div><br><div><div>On Jul 18, 2011, at 2:11 AM, csharpplusproject wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div>
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">videlalvaro@gmail.com</a>><br>
<b>To</b>: csharpplusproject <<a href="mailto:csharpplusproject%20%3ccsharpplusproject@gmail.com%3e">csharpplusproject@gmail.com</a>><br>
<b>Cc</b>: Jason J. W. Williams <<a href="mailto:%22Jason%20J.%20W.%20Williams%22%20%3cjasonjwwilliams@gmail.com%3e">jasonjwwilliams@gmail.com</a>>, <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</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">http://pika.github.com/connecting.html#connection-parameters</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">jasonjwwilliams@gmail.com</a>><br>
<b>To</b>: Shalom Rav <<a href="mailto:Shalom%20Rav%20%3ccsharpplusproject@gmail.com%3e">csharpplusproject@gmail.com</a>><br>
<b>Cc</b>: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</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">csharpplusproject@gmail.com</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">rabbitmq-discuss@lists.rabbitmq.com</a>
> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
>
</pre>
<br>
<br>
</blockquote>
<blockquote type="CITE">
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
</blockquote>
<br>
Sent form my Nokia 1100
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Sent form my Nokia 1100</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>