mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
postgresql: Default random_page_cost to 1.1.
The upstream PostgreSQL default is 4, which is more appropriate for spinning disks. In general, production deploys almost always use SSDs; adjust the Zulip default value to a better value for those.
This commit is contained in:
committed by
Tim Abbott
parent
cb36774b14
commit
85d50d09d4
@@ -236,7 +236,10 @@ setting](https://www.postgresql.org/docs/current/runtime-config-connection.html#
|
||||
#### `random_page_cost`
|
||||
|
||||
Override PostgreSQL's [`random_page_cost`
|
||||
setting](https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-RANDOM-PAGE-COST)
|
||||
setting](https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-RANDOM-PAGE-COST).
|
||||
Zulip defaults this value to 1.1, which is an appropriate value for
|
||||
SSDs; if your server uses spinning disks, you should set this back to
|
||||
the upstream default of 4.0.
|
||||
|
||||
#### `replication_primary`
|
||||
|
||||
|
Reference in New Issue
Block a user