[erlang-questions] Automatic nodes discovering
Thu Jun 7 13:20:30 CEST 2012
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
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.
Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions