Erlang neighbor search

I have a couple of interconnected computers. Erlang node runs on each machine, and I would like to communicate with each other, passing the terms Erlang (peer-to-peer style). However, the nodes on other computers are listed in nodes()only after I net_adm:pingpublished them, etc. Is there a way to find out that all nodes (with the same cookie) are on the local network (and without a list of neighbors stored on each computer)?

+5
source share
1 answer

Erlang / OTP does not have a LAN discovery system, but there are several ways you could do this:

  • inet:getif() LAN, (net_kernel():epmd_module()):names(IP) IP- , , net_adm: ping() . , , DNS , IP , ping . ( node).
  • - nodefinder node. Nodefinder - , udp Erlang .
+9

All Articles