@cryptotaxi247 / infra-1 / commits / 52beada1

svn path=/configurations/trunk/tud/; revision=25022

svn path=/configurations/trunk/tud/; revision=25022

Eelco Dolstra committed Dec 7, 2010 at 11:58 UTC 52beada114f8b7c6e3b8df3e626e7e30afcd4159
1 file changed +5 -4
hydra.nix
+5 -4
@@ -77,9 +77,10 @@ in
77 fi
78 '';
79 in
80 - [ "15 02 * * * hydra source /home/hydra/.bashrc; /nix/var/nix/profiles/per-user/hydra/profile/bin/hydra_update_gc_roots.pl > /home/hydra/gc-roots.log 2>&1"
80 + [ "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"
81 # Make sure that at least 200 GiB of disk space is available.
82 - "15 03 * * * 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"
82 + "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"
83 + "15 4 * * * root start hydra-queue-runner"
84 "*/5 * * * * root ${checkSpace}"
85 ];
86
@@ -92,13 +93,13 @@ in
93 jobs.hydra_evaluator =
94 { name = "hydra-evaluator";
95 startOn = "started network-interfaces";
95 - exec = "${pkgs.su}/bin/su - hydra -c 'hydra_evaluator.pl > /home/hydra/data/evaluator.log 2>&1'";
96 + exec = "${pkgs.su}/bin/su - hydra -c 'nice -n 5 hydra_evaluator.pl > /home/hydra/data/evaluator.log 2>&1'";
97 };
98
99 jobs.hydra_queue_runner =
100 { name = "hydra-queue-runner";
101 startOn = "started network-interfaces";
101 - exec = "${pkgs.su}/bin/su - hydra -c 'hydra_queue_runner.pl > /home/hydra/data/queue_runner.log 2>&1'";
102 + exec = "${pkgs.su}/bin/su - hydra -c 'nice -n 8 hydra_queue_runner.pl > /home/hydra/data/queue_runner.log 2>&1'";
103 postStop = "${pkgs.su}/bin/su - hydra -c 'hydra_queue_runner.pl --unlock'";
104 };
105