seems better than config file. thanks Carl.<br><br><div class="gmail_quote">2012/3/12 Carl Hörberg <span dir="ltr"><<a href="mailto:carl.hoerberg@gmail.com">carl.hoerberg@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Mar 12, 2012 at 13:28, stone <<a href="mailto:zmstone@gmail.com">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">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">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">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>
</div></div></blockquote></div><br>