diff --git a/modules/ROOT/pages/clustering/replicating-databases-across-clusters.adoc b/modules/ROOT/pages/clustering/replicating-databases-across-clusters.adoc index 08290d9ec2..4d1983fa15 100644 --- a/modules/ROOT/pages/clustering/replicating-databases-across-clusters.adoc +++ b/modules/ROOT/pages/clustering/replicating-databases-across-clusters.adoc @@ -73,7 +73,7 @@ cluster/ [[create-replica]] -=== Creating a replica database +== Creating a replica database Use the following procedure to create a replica database. @@ -97,7 +97,14 @@ On *Cluster B*, run the following procedure to create a replica database `foo-re [[create-replica-db-example]] [source, cypher] ---- -CALL internal.dbms.createReplicaDatabase("foo-replica", 3, 2, {remote: "foo", addresses:["server01.example.com:6000","server02.example.com:6000","server03.example.com:6000"]}); +CALL internal.dbms.createReplicaDatabase("foo-replica", 3, 2, { + remote: "foo", + addresses:[ + "server01.example.com:6000", + "server02.example.com:6000", + "server03.example.com:6000" + ] +}); ---- All replica databases are *read-only*. @@ -121,11 +128,11 @@ SHOW DATABASE foo-replica; +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | name | type | aliases | access | address | role | writer | requestedStatus | currentStatus | statusMessage | default | home | constituents| +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| "foo-replica" | "replica" | [] | "read-write" | "localhost:7687" | "primary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | -| "foo-replica" | "replica" | [] | "read-write" | "localhost:7688" | "primary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | -| "foo-replica" | "replica" | [] | "read-write" | "localhost:7689" | "primary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | -| "foo-replica" | "replica" | [] | "read-write" | "localhost:7690" | "secondary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | -| "foo-replica" | "replica" | [] | "read-write" | "localhost:7691" | "secondary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | +| "foo-replica" | "replica" | [] | "read-only" | "localhost:7687" | "primary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | +| "foo-replica" | "replica" | [] | "read-only" | "localhost:7688" | "primary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | +| "foo-replica" | "replica" | [] | "read-only" | "localhost:7689" | "primary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | +| "foo-replica" | "replica" | [] | "read-only" | "localhost:7690" | "secondary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | +| "foo-replica" | "replica" | [] | "read-only" | "localhost:7691" | "secondary" | FALSE | "online" | "online" | "" | FALSE | FALSE | [] | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 5 rows available after 3 ms, consumed after another 1 ms