your .hosts.erlang file does not have to be complete or 100% correct. a node only needs to connect to each other to find out about all the other nodes in the cluster.
you can skip saving the .hosts.erlang file and use mutlicast UDP to dynamically detect hosts. See nodefinder for example code.
we started the UDP multicast route, but then decided to just save the central nodes file and use rsync to distribute it to all hosts. we restart nodes infrequently, so this was not a big problem.
butter71
source share