Skip to content

Commit

Permalink
Merge pull request #11446 from nextcloud/feat/adminmanual/db-replica
Browse files Browse the repository at this point in the history
feat(adminmanual): Add db replica docs
  • Loading branch information
ChristophWurst authored Jan 17, 2024
2 parents 61b6e94 + b44a8da commit d9d5f41
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions admin_manual/configuration_database/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ Database configuration
linux_database_configuration
mysql_4byte_support
bigint_identifiers
replication
splitting
14 changes: 14 additions & 0 deletions admin_manual/configuration_database/replication.rst
Original file line number Diff line number Diff line change
@@ -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'],
],

0 comments on commit d9d5f41

Please sign in to comment.