Peerage v0.1.0 Peerage.Via.Dns
Use Dns-based service discovery to connect Nodes.
Example
config :peerage, via: Peerage.Via.Dns,
dns_name: "localhost",
app_name: "myapp"
Will look up the ip(s) for ‘localhost’, and then try to
connect to myapp@$IP
for each returned ip.
Context and resources
- This project’s README
- SkyDNS announcement
- Kubernetes DNS for service discovery
Summary
Functions
Callback implementation for Peerage.Server.poll/0
.