hydra: wiggle the memory limits, remove dead code

This commit is contained in:
Astro 2022-05-31 23:16:34 +02:00
parent 7e11e77515
commit 2ee64c9459
1 changed files with 4 additions and 13 deletions

View File

@ -30,32 +30,23 @@ in {
hydraURL = "https://hydra.hq.c3d2.de";
logo = ./c3d2.svg;
notificationSender = "hydra@spam.works";
# package = pkgs.hydra-unstable.overrideAttrs (oa: {
# # HACK for Hydra error: cannot write modified lock file of flake
# patchPhase = ''
# ${pkgs.lib.optionalString (oa ? patchPhase) oa.patchPhase}
# substituteInPlace src/script/hydra-eval-jobset \
# --replace '"nix", "flake", "info"' '"nix", "flake", "info", "--no-write-lock-file"'
# '';
# });
useSubstitutes = true;
extraConfig = ''
max_output_size = 4294967296
evaluator_workers = 1
evaluator_max_memory_size = 4096
evaluator_workers = 4
evaluator_max_memory_size = 2048
'';
};
systemd.services.hydra-evaluator.serviceConfig = {
CPUWeight = 2;
MemoryHigh = "32G";
MemoryMax = "40G";
MemoryMax = "32G";
MemorySwapMax = "16G";
};
systemd.services.nix-daemon.serviceConfig = {
CPUWeight = 5;
MemoryHigh = "32G";
MemoryMax = "40G";
MemoryMax = "32G";
MemorySwapMax = "16G";
};