Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ cluster/


[[create-replica]]
=== Creating a replica database
== Creating a replica database

Use the following procedure to create a replica database.

Expand All @@ -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*.
Expand All @@ -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
Expand Down