Merge pull request #11446 from nextcloud/feat/adminmanual/db-replica

feat(adminmanual): Add db replica docs
This commit is contained in:
Christoph Wurst
2024-01-17 19:02:54 +01:00
committed by GitHub
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'],
],