Peerage v1.0.3 API Reference

Modules

Peerage is a cluster formation library. It helps your nodes find each other and connect, and it tries to keep things simple

All a Provider needs is a ‘poll’ method

Supervised server that polls the configured Provider every so often, deduplicating results, compares to already-connected nodes, and attempts to Node.connect/1 to new ones

Use Dns-based service discovery to find other Nodes

Uses configurable list of node names. Good for development, or when you know production node names ahead of time. See example below

‘No-op’ Provider that only tries to connect to itself

Use UDP multicast to find other nodes