View Source Cluster.Strategy.Epmd (libcluster v3.3.3)

This clustering strategy relies on Erlang's built-in distribution protocol.

You can have libcluster automatically connect nodes on startup for you by configuring the strategy like below:

config :libcluster,
  topologies: [
    epmd_example: [
      strategy: Elixir.Cluster.Strategy.Epmd,
      config: [
        timeout: 30_000,
        hosts: [:"a@127.0.0.1", :"b@127.0.0.1"]]]]

An optional timeout can be specified in the config. This is the timeout that will be used in the GenServer to connect the nodes. This defaults to :infinity meaning that the connection process will only happen when the worker is started. Any integer timeout will result in the connection process being triggered. In the example above, it has been configured for 30 seconds.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.