feat(adminmanual): Add db replica docs

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst
2024-01-17 18:40:42 +01:00
parent eb7a366928
commit b44a8da8e1
2 changed files with 15 additions and 0 deletions

View File

@@ -9,4 +9,5 @@ Database configuration
linux_database_configuration
mysql_4byte_support
bigint_identifiers
replication
splitting

View File

@@ -0,0 +1,14 @@
===========
Replication
===========
.. versionadded:: 29
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.
::
'dbreplica' => [
['user' => 'nextcloud', 'password' => 'password1', 'host' => '10.0.3.1', 'dbname' => 'nextcloud'],
['user' => 'nextcloud', 'password' => 'password2', 'host' => '10.0.3.2', 'dbname' => 'nextcloud'],
],