[erlang-patches] Add net_kernel and epmd support for multiple simultaneous distributed transport protocols
Thu Jan 9 16:53:59 CET 2014
On Fri, Jan 3, 2014 at 4:30 PM, Serge Aleynikov <> wrote:
> I'd like to inquire the status of the following pull request:
> Has it been reviewed?
> Hi Serge,
We have discussed your contribution at the OTP technical board and here are
Inclusion in OTP
Your patch touches many source files which are central for the Erlang
distribution and we feel it would require quite a lot of work from our side
as well to assure that nothing in the current distribution gets broken or
incompatible. It would also require quite deep involvement from us giving
more detailed feedback regarding interfaces, semantics etc. We can not
prioritize this at the moment so we will not include your contribution now
(which means REJECT for now).
But we really want to add this kind of functionality and want to encourage
you (and others) to continue the good work in this area for possible
inclusion in OTP at a later stage. See more info and thoughts below.
Enhancing/extending the Erlang distribution to support heterogenous
communication protocols is something we have discussed many times and it is
something that we really would like to have.
1) We would like a plugin architecture where different transport protocols
can be easily plugged in without having to change the basic Erlang
distribution or the VM.
2) It should be possible to run different protocols towards different nodes
3) should be possible to have different timeouts (NET_TICK_TIME) per
4) interesting protocols would be UDS, TCP, TLS over TCP, SCTP, ...
5) it should be possible to look up nodes in different ways and maybe not
only via contacting epmd on the host name which is part of the node name.
I.e having the hostname as part of the node name is not always what you
want, depending on protocol to use.
Your specific contribution
In your pull request you have implemented fully or partly 1,2, 4, and we
see it as a good start.
A general comment is that the diffs are showing differences on many places
in the code where you actually haven't changed anything except tabs, line
breaks and spaces. This makes it more difficult to sort out what you have
changed and added. We would like a clean diff without unnecessary touches
lines which has no relevance for the new function. If a formatting change
is needed or suggested it should be a separate commit/pull request.
Regarding details in your code we have not had the time to take a deeper
look but from a quick glance it looks good. The questionmarks are more
about how to introduce this new functionality in a safe way and what more
is needed that you have not addressed so far.
Suggested way forward
I think that one approach that would make it easier to include this kind of
functionality soon would be to make minimal changes to the existing
distribution code and only add or change so that it is possible to support
heterogenous protocols with code that initially can live as a separate
extension that don't need to be part of the OTP distro.
In this way the functionality can be further developed and used together
with an ordinary OTP distro (unpatched) and can easily be included later
(hopefully within a year).
Maybe you think that you already have done those minimal changes, but I
suggest you take another look and see if it is possible to find a way to
make minimal or now changes to net_kernel and epmd etc. which we could
include and then have the rest as a separate "application"/extension
project at github that can be included later.
Just some thoughts:
Maybe let the old distribution work as before and let the user choose
"new_distro" in some way and will only then get to run the new code which
allows heterogenous protocols another new EPMD or an EPMD written in Erlang
or allow for plugins of different EPMD implementations that can run in
parallell. The communication towards EPMD maybe needs to be secure as well
and then it might be much easier to implement in Erlang.
I (we) are more than willing to discuss more about how to find this minimal
patch which we think we can "safely" include and which makes it possible to
develop and use the rest as pure extensions to OTP in a first step.
Regards Kenneth, Erlang/OTP Ericsson
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-patches