<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
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 &lt;<A HREF="mailto:Alvaro%20Videla%20%3cvidelalvaro@gmail.com%3e">videlalvaro@gmail.com</A>&gt;<BR>
<B>To</B>: csharpplusproject &lt;<A HREF="mailto:csharpplusproject%20%3ccsharpplusproject@gmail.com%3e">csharpplusproject@gmail.com</A>&gt;<BR>
<B>Cc</B>: Jason J. W. Williams &lt;<A HREF="mailto:%22Jason%20J.%20W.%20Williams%22%20%3cjasonjwwilliams@gmail.com%3e">jasonjwwilliams@gmail.com</A>&gt;, <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 02:21:27 +0200<BR>
<BR>
Hi Shalom,
<BR>
<BR>
You can read the guide here:&nbsp;<A HREF="http://www.rabbitmq.com/pacemaker.html">http://www.rabbitmq.com/pacemaker.html</A>
<BR>
<BR>
Not that I like to do self advertisement, but you can also read our book about RabbitMQ that discusses clustering too:&nbsp;<A HREF="http://bitly.com/rabbitmq">http://bitly.com/rabbitmq</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 &lt;<A HREF="mailto:Alvaro%20Videla%20%3cvidelalvaro@gmail.com%3e">videlalvaro@gmail.com</A>&gt;<BR>
    <B>To</B>: csharpplusproject &lt;<A HREF="mailto:csharpplusproject%20%3ccsharpplusproject@gmail.com%3e">csharpplusproject@gmail.com</A>&gt;<BR>
    <B>Cc</B>: Jason J. W. Williams &lt;<A HREF="mailto:%22Jason%20J.%20W.%20Williams%22%20%3cjasonjwwilliams@gmail.com%3e">jasonjwwilliams@gmail.com</A>&gt;, <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&nbsp;192.168.0.3 &nbsp;(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 &quot;localhost&quot; for the IP where RabbitMQ is running. Do the same for the message publisher. <BR>
    <BR>
    See the documentation here:&nbsp;<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 &lt;<A HREF="mailto:%22Jason%20J.%20W.%20Williams%22%20%3cjasonjwwilliams@gmail.com%3e">jasonjwwilliams@gmail.com</A>&gt;<BR>
        <B>To</B>: Shalom Rav &lt;<A HREF="mailto:Shalom%20Rav%20%3ccsharpplusproject@gmail.com%3e">csharpplusproject@gmail.com</A>&gt;<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 &lt;<A HREF="mailto:csharpplusproject@gmail.com">csharpplusproject@gmail.com</A>&gt; wrote:
&gt; Using a SINGLE MACHINE, I have successfuly run the first 4 examples
&gt; that are on the RabbitMQ website.
&gt;
&gt; Now, I'd like to test THE SAME EXAMPLES using 3 different machines
&gt; that are connected in a network.
&gt;
&gt; Suppose that the RabbitMQ server is installed ONLY on host
&gt; 192.168.0.1;
&gt;
&gt; And suppose that I'd like to use machines {192.168.0.2, 192.168.0.3}
&gt; as *workers* (they DO NOT have the RabbitMQ server installed on
&gt; them).
&gt;
&gt; Taking for instance the first example {send.py, receive.py} -- how do
&gt; I establish the connection between the three machines?
&gt;
&gt; _______________________________________________
&gt; rabbitmq-discuss mailing list
&gt; <A HREF="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</A>
&gt; <A HREF="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A>
&gt;
</PRE>
        <BR>
        <BR>
        _______________________________________________<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><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>
</BODY>
</HTML>