Once my application starts, I want to talk to Consul to figure out other running nodes and connect them into a cluster. I want to customize my node’s longname and cookie.
The problem seems to be that the node is automatically started as a distributed node since I’m using releases. Therefore I can’t use
:net_kernel.start (already started) nor
:net_kernel.stop (not allowed).
Is there a way to do it? Or do I need to put all the logic into the