[erlang-questions] Distributed Erlang

Richard Carlsson carlsson.richard@REDACTED
Thu May 24 05:54:29 CEST 2012


Looking at the source code, disconnect/1 is simply implemented as the 
dual to connect_node/1, whereas connect/1 (also undocumented) is doing 
some extra stuff on top of what connect_node/1 does. I suggest 
submitting a patch that implements net_kernel:disconnect_node/1 as doing 
exactly what disconnect/1 does today, and add it to the documentation. 
This allows disconnect/1 to stay undocumented so it can be tweaked for 
whatever internal purposes OTP are using it for in the future without 
affecting user code.

    /Richard

On 05/24/2012 12:19 AM, Matthew Evans wrote:
> I guess I can use the undocumented function net_kernel:disconnect/1
>
>
>
> ------------------------------------------------------------------------
> From: mattevans123@REDACTED
> To: erlang-questions@REDACTED
> Date: Wed, 23 May 2012 17:29:12 -0400
> Subject: [erlang-questions] Distributed Erlang
>
> Hi,
>
> I am wanting to create a distributed mesh of Erlang nodes (all nodes
> will be configured with dist_auto_connect set to false). There could
> potentially be lots of nodes in the mesh, so to prevent the mesh from
> getting too big I want to have the ability to disconnect a node. Is this
> possible?
>
> Something like: net_kernel:disconnect_node('node@REDACTED').
>
> Thanks
>
> Matt
>
> _______________________________________________ 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




More information about the erlang-questions mailing list