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/multi-region-deployment/multi-data-center-routing.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
@@ -57,7 +57,7 @@ Applying the same tag to multiple servers logically groups them together.
57
57
Note that servers can have mulitple tags.
58
58
59
59
Server tags are defined as a key that maps onto a set of servers in a cluster.
60
-
Server tags are defined on each server using the xref:configuration/configuration-settings.adoc#config_server.tags[`initial.server.tags`] parameter in _neo4j.conf_.
60
+
Server tags are defined on each server using the xref:configuration/configuration-settings.adoc#config_initial.server.tags[`initial.server.tags`] parameter in _neo4j.conf_.
61
61
Each server in a cluster can be tagged with to zero or more server tags.
62
62
Server tags can be altered at runtime via the `ALTER SERVER` command,
63
63
see xref:clustering/servers.adoc#alter-server-options[Altering server options] for more details.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/clustering/servers.adoc
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,19 @@ When first discovered, a server's name defaults to the value of its generated se
37
37
[[server-enabled-state]]
38
38
=== Enabled state
39
39
40
-
A server in the free state needs to be explicitly enabled in order to be considered an active member of the cluster.
41
-
The command `ENABLE SERVER server name` is used to transition a server into this _Enabled_ state.
40
+
When you deploy a cluster for the first time, all servers included in the initial deployment are automatically enabled.
41
+
For details, refer to the example on how to xref:clustering/setup/deploy.adoc#cluster-example-configure-a-three-primary-cluster[Configure a cluster with three servers].
42
+
43
+
If you add a new server after the cluster is already running, the server is added in the `FREE` state.
44
+
A server in the `FREE` state needs to be explicitly enabled in order to be considered an active member of the cluster.
45
+
46
+
To transition a server into the _Enabled_ state, use the command `ENABLE SERVER`:
47
+
48
+
[source, syntax, role=noheader]
49
+
----
50
+
ENABLE SERVER 'serverId' [OPTIONS "{" option: value[,...] "}"]
51
+
----
52
+
42
53
The server's initial name is its ID.
43
54
If the server is already enabled and the command is executed with the same options, nothing is changed.
44
55
@@ -72,11 +83,22 @@ This may not be specified in combination with `allowedDatabases`.
72
83
73
84
[NOTE]
74
85
====
75
-
When a server is enabled, if no `OPTIONS` are not provided, the default server values are taken from the settings `initial.server.mode_constraint`, `initial.server.allowed_databases`, `initial.server.denied_databases`, and/or `initial.server.tags`.
86
+
When a server is enabled, if no `OPTIONS` are not provided, the default server's values are taken from the settings:
All these settings are only effective on the first startup of the DBMS.
76
94
====
77
95
96
+
Another option to enable a server is to set xref:configuration/configuration-settings.adoc#config_initial.dbms.automatically_enable_free_servers[`initial.dbms.automatically_enable_free_servers`] to `true`.
97
+
78
98
Once enabled, the server may be allocated databases to host.
79
99
100
+
If you need to change some of the server's values, use the <<alter-server-options, `ALTER SERVER`>> command.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/clustering/setup/analytics-cluster.adoc
+88-42Lines changed: 88 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,44 +16,43 @@ Bear in mind that the GDS library does **not** support fault tolerance and there
16
16
=== Deploy the cluster
17
17
18
18
19
-
.Configure a cluster with five servers, two only for read queries
20
-
21
-
22
-
In this example, three servers named `server01.example.com`, `server02.example.com` and `server03.example.com` are configured as the transactional part of the cluster.
19
+
. Configure a cluster with five servers, two only for read queries
20
+
+
21
+
In this example, three servers named `server01.example.com`, `server02.example.com`, and `server03.example.com` are configured as the transactional part of the cluster.
23
22
Two more servers names `server04.example.com` and `server05.example.com` are configured for the analytical queries.
24
23
Neo4j Enterprise Edition is installed on all five servers.
25
24
They are configured by preparing xref:configuration/file-locations.adoc[_neo4j.conf_] on each server.
26
-
25
+
+
27
26
Key points:
28
-
27
+
+
29
28
* All servers include _all_ members in their discovery list.
30
-
* The servers for analytics have mode constraints configured that restrict their hosting mode to _secondary_ to prevent them from participating in normal write operations.
29
+
* The servers for analytics have their mode constraints configured to _SECONDARY_ to prevent them from participating in write operations.
31
30
* In the example below, you set `dbms.cluster.discovery.resolver_type=LIST`.
@@ -153,22 +176,22 @@ The following example shows how to set up a non-fault tolerant analytics cluster
153
176
154
177
=== Deploy the cluster
155
178
156
-
.Configure a cluster with three servers
157
-
179
+
.Configure a cluster with three servers
180
+
+
158
181
In this example, three servers named `server01.example.com`, `server02.example.com` and `server03.example.com` are configured.
159
182
Neo4j Enterprise Edition is installed on all three servers.
160
183
They are configured by preparing xref:configuration/file-locations.adoc[_neo4j.conf_] on each server.
161
184
Note that `server01.example.com` is different from the others, and is the only server where write operations take place.
162
185
The other servers are able to execute read queries, and if using GDS, to write results back to the writing server.
163
-
186
+
+
164
187
Key points:
165
-
188
+
+
166
189
* The writer server only has itself in the list of discovery.
167
190
This means it does not seek out the other members when it starts, they have to discover it.
168
191
This is required in order to have a cluster with only a single primary for the `system` database.
169
-
* The servers for analytics have mode constraints configured that restrict their hosting mode to _secondary_ to prevent them from participating in normal write operations.
192
+
* The servers for analytics have their mode constraints configured to `SECONDARY` to prevent them from participating in write operations.
170
193
* In the example below, you set `dbms.cluster.discovery.resolver_type=LIST`.
171
-
194
+
+
172
195
._neo4j.conf_ on server01.example.com - the writer:
0 commit comments