1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00

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

View File

@ -412,10 +412,16 @@ REPLICA_DB_PORT
REPLICA_DB_NAME REPLICA_DB_NAME
REPLICA_DB_USER REPLICA_DB_USER
REPLICA_DB_PASS 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. 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! Once done, this is all good and you should start seeing requests against your replica server!
### Mastodon <= 4.1 ### Mastodon <= 4.1