16
9

More than 5 years have passed since last update.

Erlang VMがノード間通信に使用するTCP/IPポートを指定する

Posted at

Erlang VMがノード間のプロセス間通信に使用するポートは2種類ある。

  1. epmd(Erlang Port Mapper Daemon)が使用するポート 4369
  2. Erlang VMがノード間の通信に使うポート。epmdが 動的に割り当てる

後者は inet_dist_listen_*パラメータで範囲を指定できる。

例:後者の通信にポート 6000 から 6099 を使う場合

$ erl -sname nodeX +A8 -kernel inet_dist_listen_min 6000 inet_dist_listen_max 6099
16
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
9