remove old hydra configuration so we can use machine for builds
svn path=/configurations/trunk/tud/; revision=25203
Rob Vermaas committed
Dec 20, 2010 at 09:42 UTC
5febe4175fedd2dc7f46ea53293737ecc06e5225
1 file changed
+2
-36
hydra.nix
+2
-36
@@ -39,9 +39,7 @@ in
39
#swapDevices = [ { label = "swap" ; } ];
40
41
nix = {
42
- maxJobs = 0;
43
- distributedBuilds = true;
44
- manualNixMachines = true;
42
+ maxJobs = 8;
43
44
inherit buildMachines;
45
@@ -68,41 +66,9 @@ in
66
};
67
68
services.cron.systemCronJobs =
71
- let
72
- # If there is less than 5 GiB of free disk space, stop the queue
73
- # to prevent builds from failing or aborting.
74
- checkSpace = pkgs.writeScript "check-space"
75
- ''
76
- #! /bin/sh
77
- if [ $(($(stat -f -c '%a' /nix/store) * $(stat -f -c '%S' /nix/store))) -lt $((5 * 1024**3)) ]; then
78
- stop hydra-queue-runner
79
- fi
80
- '';
81
- in
82
- [ "15 02 * * * hydra source /home/hydra/.bashrc; NIX_REMOTE=daemon /nix/var/nix/profiles/per-user/hydra/profile/bin/hydra_update_gc_roots.pl > /home/hydra/gc-roots.log 2>&1"
69
+ [
70
# Make sure that at least 200 GiB of disk space is available.
71
"15 3 * * * root nix-store --gc --max-freed \"$((200 * 1024**3 - 1024 * $(df /nix/store | tail -n 1 | awk '{ print $4 }')))\" > /var/log/gc.log 2>&1"
85
- #"15 4 * * * root start hydra-queue-runner"
86
- "*/5 * * * * root ${checkSpace}"
72
];
73
89
- jobs.hydra_server =
90
- { name = "hydra-server";
91
- startOn = "started network-interfaces";
92
- exec = "${pkgs.su}/bin/su - hydra -c 'hydra_server.pl > /home/hydra/data/server.log 2>&1'";
93
- };
94
-
95
- jobs.hydra_evaluator =
96
- { name = "hydra-evaluator";
97
- startOn = "started network-interfaces";
98
- exec = "${pkgs.su}/bin/su - hydra -c 'nice -n 5 hydra_evaluator.pl > /home/hydra/data/evaluator.log 2>&1'";
99
- };
100
-
101
- jobs.hydra_queue_runner =
102
- { name = "hydra-queue-runner";
103
- startOn = "started network-interfaces";
104
- exec = "${pkgs.su}/bin/su - hydra -c 'nice -n 8 hydra_queue_runner.pl > /home/hydra/data/queue_runner.log 2>&1'";
105
- postStop = "${pkgs.su}/bin/su - hydra -c 'hydra_queue_runner.pl --unlock'";
106
- };
107
-
74
}