fix: make all buildbot postgres faster
work_mem was effectively absurdly low. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
3ed36f74fd
commit
e0c029ba43
|
@ -194,6 +194,32 @@ in
|
||||||
RestartSteps = 10;
|
RestartSteps = 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.postgresql.settings = {
|
||||||
|
# DB Version: 15
|
||||||
|
# OS Type: linux
|
||||||
|
# DB Type: web
|
||||||
|
# Total Memory (RAM): 64 GB
|
||||||
|
# CPUs num: 16
|
||||||
|
# Connections num: 100
|
||||||
|
# Data Storage: ssd
|
||||||
|
max_connections = 100;
|
||||||
|
shared_buffers = "16GB";
|
||||||
|
effective_cache_size = "48GB";
|
||||||
|
maintenance_work_mem = "2GB";
|
||||||
|
checkpoint_completion_target = 0.9;
|
||||||
|
wal_buffers = "16MB";
|
||||||
|
default_statistics_target = 100;
|
||||||
|
random_page_cost = 1.1;
|
||||||
|
effective_io_concurrency = 200;
|
||||||
|
work_mem = "41943kB";
|
||||||
|
huge_pages = "try";
|
||||||
|
min_wal_size = "1GB";
|
||||||
|
max_wal_size = "4GB";
|
||||||
|
max_worker_processes = 16;
|
||||||
|
max_parallel_workers_per_gather = 4;
|
||||||
|
max_parallel_workers = 16;
|
||||||
|
max_parallel_maintenance_workers = 4;
|
||||||
|
};
|
||||||
|
|
||||||
nix.settings.keep-derivations = true;
|
nix.settings.keep-derivations = true;
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
|
|
Loading…
Reference in a new issue