@cryptotaxi247 / infra-1 / commits / ec610987

autovacuum / autoanalyze much more often

Eelco Dolstra committed Jun 1, 2021 at 03:46 UTC ec610987a23a80deec6d5e01a4472021396d8a46
1 file changed +10
delft/haumea.nix
+10
@@ -139,6 +139,16 @@
139
140 # Enable JIT compilation if possible.
141 jit = "on";
142 +
143 + # autovacuum and autoanalyze much more frequently:
144 + # at these values vacuum should run approximately
145 + # every 2 mass rebuilds, or a couple times a day
146 + # on the builds table. Some of those queries really
147 + # benefit from frequent vacuums, so this should
148 + # help. In particular, I'm thinking the jobsets
149 + # pages.
150 + autovacuum_vacuum_scale_factor = 0.002;
151 + autovacuum_analyze_scale_factor = 0.001;
152 };
153
154 # FIXME: don't use 'trust'.