fix: postgresql runs into max connection issue
Simon Hauser committed
Aug 26, 2025 at 11:53 UTC
1f37ccecb63b65516d9b9f2ab475c6ec1eb0d602
1 file changed
+10
non-critical-infra/hosts/staging-hydra/hydra.nix
+10
@@ -17,6 +17,16 @@ in
17
9199 # hydra-notify metrics
18
];
19
20
+ services.postgresql.settings = {
21
+ log_min_duration_statement = 5000;
22
+ log_duration = "off";
23
+ log_statement = "none";
24
+
25
+ max_connections = 500;
26
+ work_mem = "20MB";
27
+ maintenance_work_mem = "2GB";
28
+ };
29
+
30
# garbage collection
31
nix.gc = {
32
automatic = true;