[erlang-questions] How does running nodes() on host knows about all connected nodes?
Christopher Phillips
lostcolony@REDACTED
Tue Jan 20 14:14:41 CET 2015
Essentially connecting nodes assumes you want a fully meshed topology,
and is implemented as such. When your main gru node talks to minion1, the
fact minion1 exists is registered (as evidenced by executing nodes() on
gru; vice versa also applies). When gru then establishes connection with
minion2, it communicates the existence of minion1 to minion2, etc. This
can, as indicated, be disabled with connect_all being set to false, but
that also prevents global registration of processes. You can also set the
minion nodes to be hidden nodes; this changes some of the semantics
necessary to interact with them.
>
> Date: Mon, 19 Jan 2015 15:03:45 -0300
> From: Thomas Elsgaard <thomas.elsgaard@REDACTED>
> To: Jon Schneider <jon@REDACTED>
> Cc: erlang questions <erlang-questions@REDACTED>
> Subject: Re: [erlang-questions] How does running nodes() on host knows
> about all connected nodes?
> Message-ID:
> <CAKSYKuK553SV_Vr=
> Zk169Ui8zfAVgmG8VyfYi2X9p7qMvWoZwA@REDACTED>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Any sufficiently advanced technology is indistinguishable from magic
>
> --Clarks three laws
>
> On Mon, Jan 19, 2015 at 2:14 PM, Jon Schneider <jon@REDACTED>
> wrote:
>
> > This is what erl does unless you start it with
> >
> > -connect_all false
> >
> > It is documented.
> >
> > Jon
> >
> >
> > >
> > > (minion3@REDACTED)2> nodes().
> > >
> > > ['gru@REDACTED','minion2@REDACTED',
> > >
> > > 'minion1@REDACTED']
> > >
> > > (minion3@REDACTED)3>
> > >
> > >
> > >
> > > How does this process work? What's going on behind the scenes?
> > >
> > > Thanks
> > > + Harit
> > > _______________________________________________
> > > erlang-questions mailing list
> > > erlang-questions@REDACTED
> > > http://erlang.org/mailman/listinfo/erlang-questions
> > >
> >
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150120/da394665/attachment.htm>
More information about the erlang-questions
mailing list