[erlang-questions] Ports used by Erlang OTP

Peter Sabaini peter@REDACTED
Wed Jul 29 23:38:57 CEST 2009


On Wed, 2009-07-29 at 22:29 +0200, Hynek Vychodil wrote:
> 
> 
> On Wed, Jul 29, 2009 at 10:02 PM, Peter Sabaini <peter@REDACTED>
> wrote:
>         On Wed, 2009-07-29 at 10:55 -0400, Jacek Furmankiewicz wrote:
>         > Are there default values that we cal rely on to be
>         consistent, or should we
>         > always specify it explicitly.
>         
>         
>         AFAIK distributed Erlang VMs use random highports by default
>         
>         > Are there any port ranges that are recommended (i.e. I know
>         below 1024
>         > usually requires root access, etc.)
>         
>         
>         No recommendation I know of. The extent of the range also
>         depends on how
>         many distributed nodes you plan on connecting (every node will
>         then hold
>         a connection to every other node which could require quite a
>         bit of
>         ports; N*(N-1)/2 ports to be precise).
> 
> No, it needs only N-1 ports on each of N node. Your formula is for
> number of connections which is irrelevant here.

Oops you are right, I mixed that up -- sorry.


> 
>         
>         
>         
>         >
>         > Thanks
>         >
>         > On Wed, Jul 29, 2009 at 9:57 AM, Peter Sabaini
>         <peter@REDACTED> wrote:
>         >
>         > > On Wed, 2009-07-29 at 09:42 -0400, Jacek Furmankiewicz
>         wrote:
>         > > > Is there some documentation as to which ports are used
>         internally by
>         > > Erlang
>         > > > OTP?
>         > >
>         > > For OTP, this is configurable, see
>         > >
>         > > {inet_dist_listen_min, First}
>         > > {inet_dist_listen_max, Last}
>         > >
>         > > in the kernel reference docs
>         > > ( http://erlang.org/doc/man/kernel_app.html )
>         > >
>         > > EPMD listens on port 4369 by default
>         > >
>         > > > I need to document it for our operations team before
>         they move the app
>         > > into
>         > > > production. Our data centers are very hardened and all
>         ports are closed
>         > > by
>         > > > defaults.
>         > > > Only those specifically requested are opened.
>         > > >
>         > > > I guess I would need to know the ports used by EPMD and
>         OTP for all the
>         > > > rpc:_ calls...or any other ports that are required for
>         an OTP app to
>         > > > function.
>         > > >
>         > > > Thanks,
>         > > > Jacek
>         > >
>         
> 
> 
> 
> -- 
> --Hynek (Pichi) Vychodil
> 
> Analyze your data in minutes. Share your insights instantly. Thrill
> your boss.  Be a data hero!
> Try Good Data now for free: www.gooddata.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090729/91746433/attachment.bin>


More information about the erlang-questions mailing list