I’m setting up a background worker cluster in Elixir.
This is exactly the same code as the main service (which is clustered and running fine)
Same configs with the exception of turning off the web server through an env var.
When it’s trying to discover the services with the same name in the cluster (using libcluster) it fails with a :nxdomain error.
Within libcluster this resolves to
discovery = System.get_env("RENDER_DISCOVERY_SERVICE") |> String.to_charlist()
:inet_res.getbyname(discovery, :a)
When I run this on my existing service everything is fine. Running this on my new “Background worker” instance, it cannot find it.
Any help?