update services: don't allow services to use all the ram
Eelco Dolstra committed
Dec 18, 2021 at 03:47 UTC
8e562025c134909774bd1455b45bb20ab546d915
1 file changed
+5
-1
modules/hydra-mirror.nix
+5
-1
@@ -22,8 +22,12 @@ let
22
Type = "oneshot";
23
RemainAfterExit = false;
24
User = "hydra-mirror";
25
+ # Allow the unit to use 80% of the system's RAM and 100% of the system's swap
26
+ MemoryHigh = "80%";
27
+ };
28
+ unitConfig = {
29
+ After = [ "networking.target" ];
30
};
26
- unitConfig.After = [ "networking.target" ];
31
environment.TMPDIR = "/scratch/hydra-mirror";
32
environment.GC_INITIAL_HEAP_SIZE = "4g";
33
};