File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ Postgres Strategy for [libcluster](https://hexdocs.pm/libcluster/) which is used
4
4
5
5
It uses Postgres ` LISTEN ` and ` NOTIFICATION ` to send the information from a given node and connects them using libcluster.
6
6
7
-
8
7
``` elixir
9
8
config :libcluster ,
10
9
topologies: [
@@ -17,6 +16,7 @@ config :libcluster,
17
16
database: " postgres" ,
18
17
port: 5432 ,
19
18
parameters: [],
19
+ # optional, defaults to node cookie
20
20
channel_name: " cluster"
21
21
],
22
22
]
@@ -25,7 +25,6 @@ config :libcluster,
25
25
26
26
To see it in use run the script ` ./test.sh ` in this folder and you will see that both nodes connected as expected and are able to list one another.
27
27
28
-
29
28
## Installation
30
29
31
30
The package can be installed
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ defmodule LibclusterPostgres.Strategy do
11
11
## Options
12
12
13
13
* `heartbeat_interval` - The interval at which to send heartbeat messages in milliseconds (optional; default: 5_000)
14
- * `channel_name` - The name of the channel to which nodes will listen and notify (optional; default: "cluster" )
14
+ * `channel_name` - The name of the channel to which nodes will listen and notify (optional; defaults to the result of `Node.get_cookie/0` )
15
15
"""
16
16
use GenServer
17
17
You can’t perform that action at this time.
0 commit comments