Skip to content

Commit 96bf23f

Browse files
committed
update in-place rolling
1 parent 83d186f commit 96bf23f

File tree

1 file changed

+34
-15
lines changed

1 file changed

+34
-15
lines changed

modules/ROOT/pages/clustering/setup/discovery.adoc

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -232,41 +232,60 @@ For more information, see <<clustering-discovery-k8s>>.
232232
In-place rolling reduces fault tolerance temporarily because you are restarting a running server.
233233
To keep fault-tolerance, you can introduce a fourth server temporarily.
234234
====
235-
. Ensure that the new settings are added to the configuration as detailed in the xref:clustering/setup/discovery.adoc#_preparation[preparation] section.
236-
. Restart server01 with the new setting `dbms.cluster.discovery.version=V1_OVER_V2`.
235+
. For all the servers, ensure that new settings are added to the configuration as detailed the xref:clustering/setup/discovery.adoc#_preparation[preparation] section.
237236
+
238-
image:discovery-service/in-place-1-v1-over-v2.png[]
237+
As an example, for those using the list resolver, the settings for all the servers should include:
238+
+
239+
```
240+
dbms.cluster.discovery.resolver_type=LIST
239241

240-
. Then repeat step 2 for server02 and server03.
241-
Ensure to restart them sequentially, not in parallel.
242+
dbms.cluster.discovery.endpoints=server01.example.com:5000,server02.example.com:5000,server03.example.com:5000
243+
dbms.cluster.discovery.v2.endpoints=server01.example.com:6000,server02.example.com:6000,server03.example.com:6000
244+
```
245+
. Restart server1 with the new setting `dbms.cluster.discovery.version=V1_OVER_V2`.
246+
+
247+
image:discovery-service/in-place-1-v1-over-v2.png[]
248+
. Run `Show servers;` and ensure that all three members are alive.
249+
. Then repeat steps 2 and 3 for server2 and server3. Ensure that they are set to `dbms.cluster.discovery.version=V1_OVER_V2`
250+
Restart them sequentially, not in parallel.
242251
+
243252
image:discovery-service/in-place-23-v1-over-v2.png[]
244253

245-
. Using `bolt://`, connect to the system database of servers 1, 2, 3 and run the following procedure.
254+
. Using `bolt://`, connect to the system database of servers 1, 2, 3, and run the following procedure.
255+
This can be done using via `./cypher-shell -a bolt://localhost:7681 -d system` for example.
246256
+
247257
[source,cypher]
248258
----
249259
CALL dbms.cluster.showParallelDiscoveryState();
250260
----
251261
+
252-
For example this can be done using via `./cypher-shell -a bolt://localhost:7681 -d system`
253-
It is important to connect via `bolt://` because otherwise the procedure might be routed and executed not on the intended server.
254-
+
255262
They should display "Matching" in the `stateComparison`.
263+
+
264+
[queryresult]
265+
----
266+
+----------------------------------------------------------------+
267+
| mode | stateComparison | v1ServerCount | v2ServerCount |
268+
+----------------------------------------------------------------+
269+
| "V1_OVER_V2" | "Matching" | "3" | "3" |
270+
+----------------------------------------------------------------+
271+
----
272+
+
256273
If they are not, wait and try again.
257274
+
258275
. Restart server1 again with the new setting `dbms.cluster.discovery.version=V2_OVER_V1`.
259276
+
260277
image:discovery-service/in-place-1-v2-over-v1.png[]
261-
262-
. Then repeat step 5 for servers 2 and 3.
263-
Ensure to restart them sequentially, not in parallel.
278+
+
279+
. Run `Show servers;` and ensure that all three members are alive.
280+
. Then repeat steps 6 and 7 for servers 2 and 3.
281+
Ensure that they are set to `dbms.cluster.discovery.version=V2_OVER_V1`
282+
Restart them sequentially, not in parallel.
264283
+
265284
image:discovery-service/in-place-23-v2-over-v1.png[]
266285

267-
. Similar to step 4, verify that `stateComparison` shows `Matching`.
286+
. Similar to step 5, verify that `stateComparison` shows `Matching`.
268287

269-
. Repeat steps 5, 6 and 7, restarting servers 1, 2, and 3 sequentially, with the new setting `dbms.cluster.discovery.version=V2_ONLY`
288+
. Repeat steps 6, 7, 8, 9, restarting servers 1, 2, and 3 sequentially, with the new setting `dbms.cluster.discovery.version=V2_ONLY`
270289
image:discovery-service/in-place-123-v2-only.png[]
271290
. Verify that `CALL dbms.cluster.showParallelDiscoveryState()` now shows `V2_ONLY` running.
272291
Note that `stateComparison` is `N/A` because you do not have v1 to compare states anymore.
@@ -282,7 +301,7 @@ As an example, for those using the list resolver, the settings for all the serve
282301
dbms.cluster.discovery.resolver_type=LIST
283302

284303
dbms.cluster.discovery.endpoints=server01.example.com:5000,server02.example.com:5000,server03.example.com:5000,server04.example.com:5000,server05.example.com:5000,server06.example.com:5000
285-
dbms.cluster.discovery.v2.endpoints=server04.example.com:6000,server05.example.com:6000,server06.example.com:6000
304+
dbms.cluster.discovery.v2.endpoints=server01.example.com:6000,server02.example.com:6000,server03.example.com:6000,server04.example.com:6000,server05.example.com:6000,server06.example.com:6000
286305
```
287306
. Start up the three new servers with the setting `dbms.cluster.discovery.version=V1_OVER_V2`.
288307
+

0 commit comments

Comments
 (0)