postgres tuning
This commit is contained in:
parent
71c8745eae
commit
6d4021a6d1
|
@ -57,8 +57,16 @@
|
||||||
};
|
};
|
||||||
# State version
|
# State version
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
# Postgres version
|
# Postgres version and tuning
|
||||||
services.postgresql.package = pkgs.postgresql_15;
|
services.postgresql = {
|
||||||
|
package = pkgs.postgresql_15;
|
||||||
|
settings = {
|
||||||
|
shared_buffers = "4GB";
|
||||||
|
effective_cache_size = "8GB";
|
||||||
|
work_mem = "64MB";
|
||||||
|
maintenance_work_mem = "128MB";
|
||||||
|
};
|
||||||
|
};
|
||||||
# Configure bootloader
|
# Configure bootloader
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
Loading…
Reference in New Issue