Skip to content

Commit 1aba780

Browse files
Swap tabs in the example blocks
1 parent 95aa086 commit 1aba780

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

modules/ROOT/pages/tutorial/tutorial-clustering-docker.adoc

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For more information, see the https://docs.docker.com/compose/install/[Install D
3636
+
3737
[.tabbed-example]
3838
=====
39-
[role=include-with-discovery-service-v1 label--deprecated-5.23]
39+
[role=include-with-discovery-service-v2 label--new-5.23]
4040
======
4141
[source,shell,subs="attributes+, +macros"]
4242
----
@@ -46,20 +46,23 @@ server.memory.pagecache.size=100M
4646
# Setting that specifies the initial JVM heap size.
4747
server.memory.heap.initial_size=100M
4848
49-
# The behavior of the initial discovery is determined by the parameters `dbms.cluster.discovery.resolver_type` and `dbms.cluster.discovery.endpoints`.
49+
# The behavior of the discovery service is determined by the parameters `dbms.cluster.discovery.resolver_type`, `dbms.cluster.discovery.v2.endpoints`, and `dbms.cluster.discovery.version`.
5050
# The DNS strategy fetches the IP addresses of the cluster members using the DNS A records.
5151
dbms.cluster.discovery.resolver_type=DNS
5252
53-
# The value of `dbms.cluster.discovery.endpoints` should be set to a single domain name and the port of the discovery service.
53+
# The value of `dbms.cluster.discovery.version` must be set to `V2_ONLY` if you want to use the discovery service v2.
54+
# The discovery service v2 utilizes the port `6000`.
55+
56+
# The value of `dbms.cluster.discovery.V2.endpoints` should be set to a single domain name and the port of the discovery service.
5457
# The domain name returns an A record for every server in the cluster when a DNS lookup is performed.
5558
# Each A record returned by DNS should contain the IP address of the server in the cluster.
5659
# The configured server uses all the IP addresses from the A records to join or form a cluster.
5760
# The discovery port must be the same on all servers when using this configuration.
58-
dbms.cluster.discovery.endpoints=neo4j-network:5000
61+
dbms.cluster.discovery.V2.endpoints=neo4j-network:6000
5962
6063
# Address (the public hostname/IP address of the machine)
6164
# and port setting that specifies where this instance advertises for discovery protocol messages from other members of the cluster.
62-
server.discovery.advertised_address=$(hostname -i)
65+
server.cluster.advertised_address=$(hostname -i)
6366
6467
# Address (the public hostname/IP address of the machine)
6568
# and port setting that specifies where this instance advertises for Raft messages within the cluster.
@@ -79,7 +82,7 @@ dbms.routing.default_router=SERVER
7982
server.routing.advertised_address=$(hostname)
8083
----
8184
======
82-
[role=include-with-discovery-service-v2 label--new-5.23]
85+
[role=include-with-discovery-service-v1 label--deprecated-5.23]
8386
======
8487
[source,shell,subs="attributes+, +macros"]
8588
----
@@ -89,19 +92,16 @@ server.memory.pagecache.size=100M
8992
# Setting that specifies the initial JVM heap size.
9093
server.memory.heap.initial_size=100M
9194
92-
# The behavior of the discovery service is determined by the parameters `dbms.cluster.discovery.resolver_type`, `dbms.cluster.discovery.v2.endpoints`, and `dbms.cluster.discovery.version`.
95+
# The behavior of the initial discovery is determined by the parameters `dbms.cluster.discovery.resolver_type` and `dbms.cluster.discovery.endpoints`.
9396
# The DNS strategy fetches the IP addresses of the cluster members using the DNS A records.
9497
dbms.cluster.discovery.resolver_type=DNS
9598
96-
# The value of `dbms.cluster.discovery.version` must be set to `V2_ONLY` if you want to use the discovery service v2.
97-
# The discovery service v2 utilizes the port `6000`.
98-
99-
# The value of `dbms.cluster.discovery.V2.endpoints` should be set to a single domain name and the port of the discovery service.
99+
# The value of `dbms.cluster.discovery.endpoints` should be set to a single domain name and the port of the discovery service.
100100
# The domain name returns an A record for every server in the cluster when a DNS lookup is performed.
101101
# Each A record returned by DNS should contain the IP address of the server in the cluster.
102102
# The configured server uses all the IP addresses from the A records to join or form a cluster.
103103
# The discovery port must be the same on all servers when using this configuration.
104-
dbms.cluster.discovery.V2.endpoints=neo4j-network:6000
104+
dbms.cluster.discovery.endpoints=neo4j-network:5000
105105
106106
# Address (the public hostname/IP address of the machine)
107107
# and port setting that specifies where this instance advertises for discovery protocol messages from other members of the cluster.
@@ -342,9 +342,8 @@ Example of a `docker run` command for deploying a cluster with three servers:
342342

343343
[.tabbed-example]
344344
=====
345-
[role=include-with-discovery-service-v1 label--deprecated-5.23]
345+
[role=include-with-discovery-service-v2 label--new-5.23]
346346
======
347-
348347
[source,shell,subs="attributes"]
349348
----
350349
docker network create --driver=bridge neo4j-cluster
@@ -353,7 +352,8 @@ docker run --name=server1 --detach --network=neo4j-cluster \
353352
--publish=7474:7474 --publish=7473:7473 --publish=7687:7687 \
354353
--hostname=server1 \
355354
--env NEO4J_initial_server_mode__constraint=PRIMARY \
356-
--env NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000 \
355+
--env NEO4J_dbms_cluster_discovery_version=V2_ONLY \
356+
--env NEO4J_dbms_cluster_discovery_v2_endpoints=server1:6000,server2:6000,server3:6000 \
357357
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
358358
--env NEO4J_server_bolt_advertised__address=localhost:7687 \
359359
--env NEO4J_server_http_advertised__address=localhost:7474 \
@@ -364,7 +364,8 @@ docker run --name=server2 --detach --network=neo4j-cluster \
364364
--publish=8474:7474 --publish=8473:7473 --publish=8687:7687 \
365365
--hostname=server2 \
366366
--env NEO4J_initial_server_mode__constraint=PRIMARY \
367-
--env NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000 \
367+
--env NEO4J_dbms_cluster_discovery_version=V2_ONLY \
368+
--env NEO4J_dbms_cluster_discovery_v2_endpoints=server1:6000,server2:6000,server3:6000 \
368369
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
369370
--env NEO4J_server_bolt_advertised__address=localhost:8687 \
370371
--env NEO4J_server_http_advertised__address=localhost:8474 \
@@ -375,16 +376,18 @@ docker run --name=server3 --detach --network=neo4j-cluster \
375376
--publish=9474:7474 --publish=9473:7473 --publish=9687:7687 \
376377
--hostname=server3 \
377378
--env NEO4J_initial_server_mode__constraint=PRIMARY \
378-
--env NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000 \
379+
--env NEO4J_dbms_cluster_discovery_version=V2_ONLY \
380+
--env NEO4J_dbms_cluster_discovery_v2_endpoints=server1:6000,server2:6000,server3:6000 \
379381
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
380382
--env NEO4J_server_bolt_advertised__address=localhost:9687 \
381383
--env NEO4J_server_http_advertised__address=localhost:9474 \
382384
--env NEO4J_AUTH=neo4j/mypassword \
383385
neo4j:{neo4j-version-exact}-enterprise
384386
----
385387
======
386-
[role=include-with-discovery-service-v2 label--new-5.23]
388+
[role=include-with-discovery-service-v1 label--deprecated-5.23]
387389
======
390+
388391
[source,shell,subs="attributes"]
389392
----
390393
docker network create --driver=bridge neo4j-cluster
@@ -393,8 +396,7 @@ docker run --name=server1 --detach --network=neo4j-cluster \
393396
--publish=7474:7474 --publish=7473:7473 --publish=7687:7687 \
394397
--hostname=server1 \
395398
--env NEO4J_initial_server_mode__constraint=PRIMARY \
396-
--env NEO4J_dbms_cluster_discovery_version=V2_ONLY \
397-
--env NEO4J_dbms_cluster_discovery_v2_endpoints=server1:6000,server2:6000,server3:6000 \
399+
--env NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000 \
398400
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
399401
--env NEO4J_server_bolt_advertised__address=localhost:7687 \
400402
--env NEO4J_server_http_advertised__address=localhost:7474 \
@@ -405,8 +407,7 @@ docker run --name=server2 --detach --network=neo4j-cluster \
405407
--publish=8474:7474 --publish=8473:7473 --publish=8687:7687 \
406408
--hostname=server2 \
407409
--env NEO4J_initial_server_mode__constraint=PRIMARY \
408-
--env NEO4J_dbms_cluster_discovery_version=V2_ONLY \
409-
--env NEO4J_dbms_cluster_discovery_v2_endpoints=server1:6000,server2:6000,server3:6000 \
410+
--env NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000 \
410411
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
411412
--env NEO4J_server_bolt_advertised__address=localhost:8687 \
412413
--env NEO4J_server_http_advertised__address=localhost:8474 \
@@ -417,8 +418,7 @@ docker run --name=server3 --detach --network=neo4j-cluster \
417418
--publish=9474:7474 --publish=9473:7473 --publish=9687:7687 \
418419
--hostname=server3 \
419420
--env NEO4J_initial_server_mode__constraint=PRIMARY \
420-
--env NEO4J_dbms_cluster_discovery_version=V2_ONLY \
421-
--env NEO4J_dbms_cluster_discovery_v2_endpoints=server1:6000,server2:6000,server3:6000 \
421+
--env NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000 \
422422
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
423423
--env NEO4J_server_bolt_advertised__address=localhost:9687 \
424424
--env NEO4J_server_http_advertised__address=localhost:9474 \
@@ -435,7 +435,7 @@ Example of a `docker run` command for adding a fourth server with a role `SECOND
435435

436436
[.tabbed-example]
437437
=====
438-
[role=include-with-discovery-service-v1 label--deprecated-5.23]
438+
[role=include-with-discovery-service-v2 label--new-5.23]
439439
======
440440

441441
[source,shell,subs="attributes"]
@@ -444,15 +444,15 @@ docker run --name=read-server4 --detach --network=neo4j-cluster \
444444
--publish=10474:7474 --publish=10473:7473 --publish=10687:7687 \
445445
--hostname=read-server4 \
446446
--env NEO4J_initial_server_mode__constraint=SECONDARY \
447-
--env NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000 \
447+
--env NEO4J_dbms_cluster_discovery_version=V2_ONLY \
448+
--env NEO4J_dbms_cluster_discovery_V2_endpoints=server1:6000,server2:6000,server3:6000 \
448449
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
449450
--env NEO4J_server_bolt_advertised__address=localhost:10687 \
450451
--env NEO4J_server_http_advertised__address=localhost:10474 \
451452
neo4j:{neo4j-version-exact}-enterprise
452453
----
453-
454454
======
455-
[role=include-with-discovery-service-v2 label--new-5.23]
455+
[role=include-with-discovery-service-v1 label--deprecated-5.23]
456456
======
457457

458458
[source,shell,subs="attributes"]
@@ -461,12 +461,12 @@ docker run --name=read-server4 --detach --network=neo4j-cluster \
461461
--publish=10474:7474 --publish=10473:7473 --publish=10687:7687 \
462462
--hostname=read-server4 \
463463
--env NEO4J_initial_server_mode__constraint=SECONDARY \
464-
--env NEO4J_dbms_cluster_discovery_version=V2_ONLY \
465-
--env NEO4J_dbms_cluster_discovery_V2_endpoints=server1:6000,server2:6000,server3:6000 \
464+
--env NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000 \
466465
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
467466
--env NEO4J_server_bolt_advertised__address=localhost:10687 \
468467
--env NEO4J_server_http_advertised__address=localhost:10474 \
469468
neo4j:{neo4j-version-exact}-enterprise
470469
----
470+
471471
======
472472
=====

0 commit comments

Comments
 (0)