Limit Hydra evaluator memory usage and collect garbage

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-21 15:00:20 +02:00
parent 801b59a8cf
commit 1b3d44bd76
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -46,6 +46,7 @@ makeSystem {
minimumDiskFreeEvaluator = 100;
dbiFile = "/local/dbi";
config.evaluator_max_memory_size = "2048M";
};
services.socklog = {
enable = true;
@ -66,6 +67,19 @@ makeSystem {
enabled = true;
};
services.crond.crontabs.autogc = {
jobs =
let
storegc = pkgs.writeShellScript "storegc"
''
nix-collect-garbage -d
'';
in
[
"0 4 * * * ${storegc}"
];
};
init.services.nix-daemon.environment.PATH = with pkgs; lib.makeBinPath [
utillinux
runit