tyo0: use postgresql_16
This commit is contained in:
parent
a14917f664
commit
538fffeee5
1 changed files with 19 additions and 0 deletions
|
@ -94,6 +94,25 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.postgresql = {
|
||||||
|
package = pkgs.postgresql_16;
|
||||||
|
settings = {
|
||||||
|
max_connections = 200;
|
||||||
|
shared_buffers = "256MB";
|
||||||
|
effective_cache_size = "768MB";
|
||||||
|
maintenance_work_mem = "64MB";
|
||||||
|
checkpoint_completion_target = 0.9;
|
||||||
|
wal_buffers = "7864kB";
|
||||||
|
default_statistics_target = 100;
|
||||||
|
random_page_cost = 1.1;
|
||||||
|
effective_io_concurrency = 200;
|
||||||
|
work_mem = "655kB";
|
||||||
|
huge_pages = "off";
|
||||||
|
min_wal_size = "1GB";
|
||||||
|
max_wal_size = "4GB";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.wastebin = {
|
services.wastebin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.WASTEBIN_ADDRESS_PORT = "127.0.0.1:8200";
|
settings.WASTEBIN_ADDRESS_PORT = "127.0.0.1:8200";
|
||||||
|
|
Loading…
Reference in a new issue