<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Do you want failover or clustering (or both)?<div><br></div><div>I use both. I have haproxy as a TCP proxy that sits in front of the RabbitMQ servers and acts as a failover and load balancer mechanism.</div><div><br></div><div>Behind the proxy are clustered RabbitMQ instances, which means they use the standard RabbitMQ clustering mechanism and have the same queues, exchanges, and whatnot on each box.</div><div><br></div><div>I then use Spring AMQP to connect to the *proxy*, who decides which of the RabbitMQ instances I actually get connected to.</div><div><br></div><div><div><br>Jon&nbsp;Brisbin</div><div>Portal&nbsp;Webmaster</div><div>NPC&nbsp;International,&nbsp;Inc.</div><br></div><div><br></div><div><div><div>On Oct 29, 2010, at 1:27 AM, Kshitiz Garg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>I have just started working with RabbitMQ for my cloud messaging/eventing application. The proof of concept worked well with rabbitMQ and Spring AMQP. Now, I want to start preparing for scalability. <br>I am able to setup a rabbitMQ cluster with 2 rabbitMQs installed on 2 separate machines. Now I want to know what is achieved by "clustering" in terms of rabbitMQ. <br>

<br>My spring amqp template has been given a connection Factory like this:<br><b><br>&nbsp;&nbsp;&nbsp; &lt;!-- RabbitMQ configurations --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;!-- Define a connectionFactory --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;bean id="connectionFactory"<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; class="org.springframework.amqp.rabbit.connection.SingleConnectionFactory"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;constructor-arg value="localhost" /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;property name="username" value="guest" /&gt;<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;property name="password" value="guest" /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/bean&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;!-- Configure the admin class --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;bean id="amqpAdmin" class="org.springframework.amqp.rabbit.core.RabbitAdmin"&gt;<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;constructor-arg ref="connectionFactory" /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/bean&gt;</b><br><br>Here I have specified <b>localhost</b>, so now, if I send a amqp message through rabbitMQ and this localhost broker is not up, will that message go through its cluster node automatically ?<br>

<br>If that's the case, then what do we mean by high availability?<br><br>Thanks,<br>Kshitiz Garg<br><br><br><br><br>
_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-size: medium; 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; "><div><div><br></div></div></span>
</div>
<br></div></body></html>