[erlang-questions] Automatic nodes discovering

Maxim Treskin zerthurd@REDACTED
Thu Jun 7 13:40:18 CEST 2012


Thank you, Ulf

net_adm:names() is almost exactly what i need

On 7 June 2012 18:20, Ulf Wiger <ulf@REDACTED> wrote:

>
> On 7 Jun 2012, at 13:06, Maxim Treskin wrote:
>
> How I can make automatically discovering new nodes in cluster? When new
> node started up it is not listed in output of nodes() on other nodes
> without explicit ping of them. There is way to do this using RabbitMQ or
> ZeroMQ, but it is some redundant. Yet another way is ping of one known node
> in cluster, but it is constrained by nodes startup order.
>
>
> The old-school way is indeed to have the new node ping one
> of the known nodes. It used to be judged acceptable to have
> a couple of "master nodes", one of which had to be up in order
> for the system to be operational. I think this model is a bit too
> easily discarded these days… not everyone needs so many
> nodes that perfect symmetry is really called for from a handling
> perspective.
>
> Even looking at e.g. riak_core, a new node needs to be told
> which node to talk to in order to join the ring.
>
> You can also look into the net_adm module in kernel.
> It has some functions for auto-discovery.
>
> http://www.erlang.org/doc/man/net_adm.html
>
> BR,
> Ulf W
>
> Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
> http://feuerlabs.com
>
>
>
>


-- 
Max Treskin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120607/679a4ef5/attachment.htm>


More information about the erlang-questions mailing list