diff --git a/services/buildbot/default.nix b/services/buildbot/default.nix index 160f321..063557d 100644 --- a/services/buildbot/default.nix +++ b/services/buildbot/default.nix @@ -194,6 +194,32 @@ in 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.gc = {