mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Synapse PostgreSQL tuning
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
13b14f7025
commit
1e1cf196ec
|
@ -22,6 +22,25 @@ makeSystem {
|
|||
|
||||
authentication = "host all all all md5";
|
||||
|
||||
config = {
|
||||
max_connections = 50;
|
||||
shared_buffers = "384MB";
|
||||
effective_cache_size = "1152MB";
|
||||
maintenance_work_mem = "96MB";
|
||||
checkpoint_completion_target = "0.9";
|
||||
wal_buffers = "11796kB";
|
||||
default_statistics_target = 100;
|
||||
random_page_cost = 4;
|
||||
effective_io_concurrency = 2;
|
||||
work_mem = "1966kB";
|
||||
min_wal_size = "1GB";
|
||||
max_wal_size = "4GB";
|
||||
max_worker_processes = 12;
|
||||
max_parallel_workers_per_gather = 4;
|
||||
max_parallel_workers = 12;
|
||||
max_parallel_maintenance_workers = 4;
|
||||
};
|
||||
|
||||
ensureDatabases = {
|
||||
"synapse" = { ENCODING = "UTF8"; TEMPLATE = "template0"; };
|
||||
"mautrix-facebook" = { ENCODING = "UTF8"; TEMPLATE = "template0"; };
|
||||
|
|
Loading…
Reference in a new issue