postgres tuning

This commit is contained in:
Nathan McCarty 2023-06-04 21:51:44 -04:00
parent 71c8745eae
commit 6d4021a6d1
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 10 additions and 2 deletions

View File

@ -57,8 +57,16 @@
};
# State version
system.stateVersion = "23.05";
# Postgres version
services.postgresql.package = pkgs.postgresql_15;
# Postgres version and tuning
services.postgresql = {
package = pkgs.postgresql_15;
settings = {
shared_buffers = "4GB";
effective_cache_size = "8GB";
work_mem = "64MB";
maintenance_work_mem = "128MB";
};
};
# Configure bootloader
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";