[erlang-questions] How does running nodes() on host knows about all connected nodes?

Harit Himanshu harit.subscriptions@REDACTED
Tue Jan 20 18:18:25 CET 2015


That is very interesting to learn. Thanks a lot for explaining this to me.

The follow up question then becomes, is it recommended to have such a mesh?
(because I read word problematic). How do people in general connect to
server? so they start with *-connect_all false* as mentioned?

Thanks
+ Harit

On Tue, Jan 20, 2015 at 6:17 AM, Mihai Balea <mihai@REDACTED> wrote:

>
> > On Jan 20, 2015, at 9:03 AM, Mihai Balea <mihai@REDACTED> wrote:
> >
> > When a node connects to another node in a running cluster, it gets a
> list of nodes already in the cluster. It then establishes connections to
> every one of them automatically. You end up with a fully connected mesh.
> That is the default behavior, and the reason why large erlang clusters
> become problematic (n*n connections). There are ways to override this
> behavior at a loss of some functionality.
>
> Just to be accurate, the number of connection is given by the formula
> n*(n-1)/2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150120/5ab289ea/attachment.htm>


More information about the erlang-questions mailing list