diff --git a/hosts/by-name/servo/services/postgres.nix b/hosts/by-name/servo/services/postgres.nix index 34b6f2ed3..9e8f9d4c6 100644 --- a/hosts/by-name/servo/services/postgres.nix +++ b/hosts/by-name/servo/services/postgres.nix @@ -50,22 +50,23 @@ in # - for recommended values see: # - for official docs (sparse), see: services.postgresql.settings = { - # DB Version: 15 + # DB Version: 16 # OS Type: linux # DB Type: web - # Total Memory (RAM): 32 GB + # vvv artificially constrained because the server's resources are shared across maaany services + # Total Memory (RAM): 12 GB # CPUs num: 12 # Data Storage: ssd max_connections = 200; - shared_buffers = "8GB"; - effective_cache_size = "24GB"; - maintenance_work_mem = "2GB"; + shared_buffers = "3GB"; + effective_cache_size = "9GB"; + maintenance_work_mem = "768MB"; checkpoint_completion_target = 0.9; wal_buffers = "16MB"; default_statistics_target = 100; random_page_cost = 1.1; effective_io_concurrency = 200; - work_mem = "10485kB"; + work_mem = "3932kB"; min_wal_size = "1GB"; max_wal_size = "4GB"; max_worker_processes = 12;