I have an erlang application which I will need to run in distributed way.
Now to form a cluster, erlang nodes need to share the same cookie value and to get connected either of the below approach could be taken -
net_adm:ping/1
net_kernel:connect_node/1
but doing this way I will need to maintain the node list and also handle the failover in custom way. Even in case of failover how to know the which node to connect to, as the starting nodelist could have been changed till then.
So can anyone suggest how to form a erlang cluster with minimum effort and future nodes can join the cluster automatically without giving the actual nodeList.