Yeah, that's probably a decent solution too.<div>Another similar tool is doozer <a href="https://github.com/ha/doozer" target="_blank">https://github.com/ha/doozer</a></div><div>I've never used either of them though.</div>
<div><br>
<div>How about a deamon constantly pull the information from<br></div><div>command line "rabbitmqctl status" ?</div><div>I mean comparing to a plugin, will it cause any performance impact to rabbit-server?</div>
<div><br></div><div>Brs</div><div>/stone<br><br><div class="gmail_quote">
2012/3/12 Jerry Kuch <span dir="ltr"><<a href="mailto:jerryk@vmware.com" target="_blank">jerryk@vmware.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is also a pretty natural thing to do with a system like Zookeeper<br>
from the Hadoop project, although it would require Rabbit to grow something<br>
like a plugin that either had an Erlang Zookeeper client, or used a port<br>
or jinterface to the native C or Java Zookeeper clients, to do the necessary<br>
work...<br>
<br>
Best regards,<br>
Jerry<br>
<div><div><br>
----- Original Message -----<br>
From: "stone" <<a href="mailto:zmstone@gmail.com" target="_blank">zmstone@gmail.com</a>><br>
To: "Carl Hörberg" <<a href="mailto:carl.hoerberg@gmail.com" target="_blank">carl.hoerberg@gmail.com</a>><br>
Cc: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
Sent: Monday, March 12, 2012 5:46:34 AM<br>
Subject: Re: [rabbitmq-discuss] Good practice to work with rabbit cluster?<br>
<br>
<br>
seems better than config file. thanks Carl.<br>
<br>
<br>
2012/3/12 Carl Hörberg < <a href="mailto:carl.hoerberg@gmail.com" target="_blank">carl.hoerberg@gmail.com</a> ><br>
<br>
<br>
no, you have to manually administer the dns (or automatically through<br>
some heartbeat stuff interacting with your dns provider api.. )<br>
<br>
i don't know how the client implementations are, but they could try to<br>
connect to the first A record, if that fails try the next one and so<br>
forth.. (like the way many web browsers does)<br>
<br>
<br>
<br>
On Mon, Mar 12, 2012 at 13:28, stone < <a href="mailto:zmstone@gmail.com" target="_blank">zmstone@gmail.com</a> > wrote:<br>
> I'm not sure how DNS server works, is it possible for the DNS server to<br>
> detect the failure of a specific port? i.e. to find out if rabbit is down,<br>
> when the OS is still up and running.<br>
><br>
><br>
> 2012/3/12 Carl Hörberg < <a href="mailto:carl.hoerberg@gmail.com" target="_blank">carl.hoerberg@gmail.com</a> ><br>
>><br>
>> what about a multi A DNS record (with low ttl), which you update when<br>
>> a server is down/up?<br>
>><br>
>> On Mon, Mar 12, 2012 at 11:26, stone < <a href="mailto:zmstone@gmail.com" target="_blank">zmstone@gmail.com</a> > wrote:<br>
>> > Hi there!<br>
>> ><br>
>> > Is there any good practice regarding how to write self-managed AMQP<br>
>> > client<br>
>> > (Erlang based)<br>
>> > Here is what I need to accomplish:<br>
>> > 1. I don't what to hard-code hostname/ip address of rabbit-server,<br>
>> > using a configuration file would be a simple solution, but, is there a<br>
>> > better way?<br>
>> ><br>
>> > 2. Client should be able to get the rabbit server "running cluster"<br>
>> > information.<br>
>> > so if the current connection is broken, it could try another one in the<br>
>> > cluster,<br>
>> > then perhaps update the "running cluster" list from the new node;<br>
>> ><br>
>> > Brs<br>
>> > /stone<br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > rabbitmq-discuss mailing list<br>
>> > <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
>> > <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
>> ><br>
><br>
><br>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>
</div>