You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/clustering/index.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
This chapter describes the following:
7
7
8
8
* xref:clustering/introduction.adoc[Introduction] -- An overview of the clustering architecture.
9
-
* Set up a cluster -- The basics of configuring and deploying a new cluster.
9
+
* Setting up a cluster -- The basics of configuring and deploying a new cluster.
10
10
** xref:clustering/setup/deploy.adoc[Deploy a basic cluster] -- How to set up a basic cluster.
11
11
** xref:clustering/setup/analytics-cluster.adoc[Deploy an analytics cluster] -- How to deploy a special case Neo4j cluster for analytic queries.
12
12
** xref:clustering/setup/single-to-cluster.adoc[Move from single server to cluster] -- This section describes how to move from a single Neo4j server to Neo4j cluster.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/clustering/settings.adoc
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,22 +45,21 @@ Possible values are:
45
45
46
46
[.compact]
47
47
`LIST`::
48
-
Treats `dbms.cluster.discovery.endpoints` as a list of addresses of servers to contact for discovery.
48
+
Treats `dbms.cluster.discovery.endpoints`(or `dbms.cluster.discovery.v2.endpoints`, if you use discovery service v2 available as of Neo4j 5.23) as a list of addresses of servers to contact for discovery.
49
49
`DNS`::
50
-
Treats `dbms.cluster.discovery.endpoints` as a domain name to resolve via DNS.
50
+
Treats `dbms.cluster.discovery.endpoints`(or `dbms.cluster.discovery.v2.endpoints`, if you use discovery service v2 available as of Neo4j 5.23) as a domain name to resolve via DNS.
51
51
Expect DNS resolution to provide A records with hostnames or IP addresses of servers to contact for discovery, on the port specified by `dbms.cluster.discovery.endpoints`.
52
52
`SRV`::
53
-
Treats `dbms.cluster.discovery.endpoints` as a domain name to resolve via DNS.
53
+
Treats `dbms.cluster.discovery.endpoints`(or `dbms.cluster.discovery.v2.endpoints`, if you use discovery service v2 available as of Neo4j 5.23) as a domain name to resolve via DNS.
54
54
Expect DNS resolution to provide SRV records with hostnames or IP addresses and ports, of servers to contact for discovery.
55
55
`K8S`::
56
56
Accesses the Kubernetes list service API to derive addresses of servers to contact for discovery.
57
57
Requires `dbms.kubernetes.label_selector` to be a Kubernetes label selector for Kubernetes services running a server each and `dbms.kubernetes.service_port_name` to be a service port name identifying the discovery port of cluster servers services.
58
-
The value of `dbms.cluster.discovery.endpoints` is ignored for this option.
58
+
The value of `dbms.cluster.discovery.endpoints` (or `dbms.cluster.discovery.v2.endpoints`, if you use discovery service v2 available as of Neo4j 5.23) is ignored for this option.
59
+
For more details, see xref:clustering/setup/discovery.adoc#clustering-discovery-k8s[Discovery in Kubernetes].
59
60
60
-
The value of this setting determines how `dbms.cluster.discovery.endpoints` is interpreted.
61
-
Detailed information about discovery and discovery configuration options is given in xref:clustering/setup/discovery.adoc#clustering-discovery-dns[Discovery using DNS with multiple records].
62
-
63
-
**Example:**`clustering-discovery-dns=DNS` combined with `dbms.cluster.discovery.endpoints=cluster01.example.com:5000` fetch all DNS A records for _cluster01.example.com_ and attempt to reach Neo4j instances listening on port `5000` for each A record's IP address.
61
+
From Neo4j 5.23, depending on which version of the discovery service you are using, you need to set either `dbms.cluster.discovery.endpoints` or `dbms.cluster.discovery.v2.endpoints` in the _neo4j.conf_ file.
62
+
Detailed information about discovery and discovery configuration options is given in xref:clustering/setup/discovery.adoc#clustering-discovery-methods[Methods for server discovery].
64
63
65
64
| xref:configuration/configuration-settings.adoc#config_dbms.cluster.discovery.endpoints[`dbms.cluster.discovery.endpoints`] label:deprecated[Deprecated in 5.23]
66
65
| One or more network addresses used to discover other servers in the cluster.
@@ -69,14 +68,14 @@ In the default case, the initial discovery members are given as a comma-separate
69
68
70
69
It is good practice to set this parameter to the same value on all servers in the cluster.
71
70
72
-
The behavior of this setting can be modified by configuring the setting `dbms.cluster.discovery.resolver_type`.
73
-
This is described in detail in xref:clustering/setup/discovery.adoc#clustering-discovery-dns[Discovery using DNS with multiple records].
74
-
75
71
**Example:**`dbms.cluster.discovery.resolver_type=LIST` combined with `server01.example.com:5000,server02.example.com:5000,server03.example.com:5000` attempt to reach Neo4j instances listening on _server01.example.com_, _server02.example.com_ and _server03.example.com_; all on port `5000`.
76
72
77
73
|xref:configuration/configuration-settings.adoc#config_dbms.cluster.discovery.v2.endpoints[`dbms.cluster.discovery.v2.endpoints`] label:new[Introduced in 5.22]
78
74
|A comma-separated list of endpoints that a server should contact in order to discover other cluster members.
79
-
Typically, all cluster members, including the current server, must be specified in this list. The setting configures the endpoints for discovery service v2.
75
+
Typically, all cluster members, including the current server, must be specified in this list.
76
+
The setting configures the endpoints for discovery service v2.
77
+
78
+
**Example:**`dbms.cluster.discovery.resolver_type=LIST` combined with `server01.example.com:6000,server02.example.com:6000,server03.example.com:6000` attempt to reach Neo4j instances listening on _server01.example.com_, _server02.example.com_ and _server03.example.com_; all on port `6000`.
80
79
81
80
|xref:configuration/configuration-settings.adoc#config_dbms.cluster.discovery.version[`dbms.cluster.discovery.version`] label:new[Introduced in 5.22]
82
81
|This setting allows you to select which discovery service should be started.
@@ -90,6 +89,8 @@ Possible values are:
90
89
91
90
* V2_ONLY -- it runs only discovery service v2.
92
91
92
+
The default value is `V1_ONLY`.
93
+
93
94
Discovery services v1 and v2 are designed to run in parallel.
94
95
They are completely independent of each other, thus allowing you to keep the cluster functioning while switching over from v1 to v2.
95
96
For details on how to move from discovery service v1 to v2, see xref:clustering/setup/discovery.adoc#clustering-discovery-v1-to-v2[Moving from discovery service v1 to v2].
| xref:configuration/configuration-settings.adoc#config_dbms.cluster.discovery.endpoints[`dbms.cluster.discovery.endpoints`] label:deprecated[Deprecated in 5.23]
25
29
| The discovery network address for all the members of the cluster, including this server.
26
30
The setting must be set to the same value on all cluster members.
27
31
The behavior of this setting can be modified by configuring the setting `dbms.cluster.discovery.resolver_type`.
28
32
This is described in detail in xref:clustering/setup/discovery.adoc[].
33
+
| xref:configuration/configuration-settings.adoc#config_dbms.cluster.discovery.v2.endpoints[`dbms.cluster.discovery.v2.endpoints`] label:new[Introduced in 5.22]
34
+
| A comma-separated list of endpoints that a server should contact in order to discover other cluster members. Typically, all cluster members, including the current server, must be specified in this list.
35
+
The setting configures the endpoints for **discovery service v2**.
36
+
| xref:configuration/configuration-settings.adoc#config_dbms.cluster.discovery.version[`dbms.cluster.discovery.version`] label:new[Introduced in 5.22]
37
+
| This setting allows you to select which discovery service should be started.
| The number of initial database hostings in primary mode.
31
40
If not specified, it defaults to one hosting in primary mode.
@@ -42,7 +51,6 @@ See xref:clustering/databases.adoc#_create_database[`CREATE DATABASE`] for more
42
51
To view the current default settings, use the xref:reference/procedures.adoc#procedure_dbms_showTopologyGraphConfig[`dbms.showTopologyGraphConfig`] procedure.
43
52
====
44
53
45
-
The following example shows how to set up a basic cluster with three servers with primary hosting capabilities.
46
54
47
55
[CAUTION]
48
56
====
@@ -54,10 +62,19 @@ Make sure you understand the security implications and strongly consider setting
The following example shows how to set up a basic cluster with three members hosting the default database, `neo4j` (in addition to the `system` database), in primary mode.
65
+
The following example shows how to set up a basic cluster with three members hosting the default database, `neo4j` (in addition to the `system` database), in primary mode, using the method of server addresses list.
66
+
67
+
Depending on the type of xref:configuration/configuration-settings.adoc#config_dbms.cluster.discovery.resolver_type[`dbms.cluster.discovery.resolver_type`] currently in use, the discovery service can use a list of server addresses, DNS records, or Kubernetes services to discover other servers in the cluster.
68
+
69
+
In this case, you set `dbms.cluster.discovery.resolver_type=LIST`.
70
+
58
71
59
72
.Configure a cluster with three servers in primary mode
0 commit comments