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: admin_manual/configuration_database/replication.rst
+54-1Lines changed: 54 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,64 @@ Replication
4
4
5
5
.. versionadded:: 29
6
6
7
-
Nextcloud can natively split read and write operations on a database query level. Replicas are only used for reads. The default database connection will be used for writes and causal reads.
7
+
Nextcloud can natively split read and write operations at the level of individual database queries. Read-only
8
+
replicas serve reads, while the default (primary) database connection handles writes as well as reads that must be
9
+
consistent with a preceding write.
10
+
11
+
.. note::
12
+
13
+
Nextcloud only routes queries to the endpoints you provide. Setting up the replication itself (provisioning the
14
+
replicas, keeping them in sync, and monitoring replication health) is the responsibility of your database
15
+
administrator.
16
+
17
+
Configuration
18
+
-------------
19
+
20
+
Add the read-only replicas to ``config.php`` with the ``dbreplica`` parameter. Each entry describes one replica and
21
+
accepts the same connection options as the primary database connection:
0 commit comments