Consulate - erl_epmd replacement module that uses Consul instead of EPMD

I have created PoC of erl_epmd module replacement that will use HashiCorp’s Consul instead of EPMD for node discovery

Not yet published on, but I hope for that in future.

Usage is pretty simple:

  • Add consulate to list of your dependencies
  • Compile dependencies
  • Start Consul Agent, for local testing you can use just consul agent -dev
  • Run your project with ERL_FLAGS="-epmd_module consulate -start_epmd false" and full name, ex. ERL_FLAGS="-epmd_module consulate -start_epmd false" iex -S mix phx.server --name foo

Here you are, everything should work as expected.