Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable connection replica #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions docs/components/core.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
Core
####

You can configure Mautic to use Read Replicas for the database. This is useful if you have a large database and want to offload the read queries to a separate database server. This is not a requirement for Mautic to function, but it can help with performance.

In order to use this feature you must have a separate database server that is configured to be a Read Replica of your main database server. You can use the same database name and user credentials for the Read Replica as you do for the main database server.

Inside your `app/config/local.php`, you need to add a new variable called `db_host_ro` and set it to the hostname of your Read Replica database server. For example:

`db_host_ro = 'read-replica-db.example.com';`