Docs to match #32908 - REPLICA_DB_TASKS / REPLICA_PREPARED_STATEMENTS (#1561)

* Update scaling.md

* Update scaling.md

* Update scaling.md
This commit is contained in:
Shlee 2024-11-19 12:25:40 +00:00 committed by GitHub
parent 0b15ac190f
commit f25f26732b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -412,10 +412,16 @@ REPLICA_DB_PORT
REPLICA_DB_NAME
REPLICA_DB_USER
REPLICA_DB_PASS
REPLICA_PREPARED_STATEMENTS
REPLICA_DB_TASKS
```
Alternatively, you can also use `REPLICA_DATABASE_URL` if you want to configure them all using the same variable.
`REPLICA_DB_TASKS=false` will connect to an replica database without any database mangement tasks such as schema management, migrations, seeds, etc. By default it is set to true.
`REPLICA_PREPARED_STATEMENTS` is an optional override for the `PREPARED_STATEMENTS` value. By default it is set to true if `PREPARED_STATEMENTS` is not set.
Once done, this is all good and you should start seeing requests against your replica server!
### Mastodon <= 4.1