forked from bitwalker/libcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.exs
26 lines (25 loc) · 1.06 KB
/
config.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This file is provided as an example of how to configure libcluster in your own apps
use Mix.Config
config :libcluster,
# You can start clustering for one or more topologies.
topologies: [
example: [
# The selected clustering strategy. Required.
strategy: Cluster.Strategy.Epmd,
# Options for the provided strategy. Optional.
config: [],
# The function to use for connecting nodes. The node
# name will be appended to the argument list. Optional
connect: {:net_kernel, :connect_node, []},
# The function to use for disconnecting nodes. The node
# name will be appended to the argument list. Optional
disconnect: {:net_kernel, :disconnect, []},
# The function to use for listing nodes. The `:connected` option
# will always be passed as the first argument.
# Uses `:erlang.nodes([:connected])` by default. Optional
list_nodes: {:erlang, :nodes, [:connected]},
# A list of options for the supervisor child spec
# of the selected strategy. Optional
child_spec: []
]
]