Author: rob
Date: Mon Dec 20 09:42:54 2010
New Revision: 25203
URL: https://svn.nixos.org/websvn/nix/?rev=25203&sc=1

Log:
remove old hydra configuration so we can use machine for builds

Modified:
   configurations/trunk/tud/hydra.nix

Modified: configurations/trunk/tud/hydra.nix
==============================================================================
--- configurations/trunk/tud/hydra.nix  Sun Dec 19 20:12:10 2010        (r25202)
+++ configurations/trunk/tud/hydra.nix  Mon Dec 20 09:42:54 2010        (r25203)
@@ -39,9 +39,7 @@
   #swapDevices = [ { label = "swap" ; } ];
 
   nix = {
-    maxJobs = 0;
-    distributedBuilds = true;
-    manualNixMachines = true;
+    maxJobs = 8;
 
     inherit buildMachines;
 
@@ -68,41 +66,9 @@
   };
 
   services.cron.systemCronJobs =
-    let
-      # If there is less than 5 GiB of free disk space, stop the queue
-      # to prevent builds from failing or aborting.
-      checkSpace = pkgs.writeScript "check-space"
-        ''
-          #! /bin/sh
-          if [ $(($(stat -f -c '%a' /nix/store) * $(stat -f -c '%S' 
/nix/store))) -lt $((5 * 1024**3)) ]; then
-            stop hydra-queue-runner
-          fi
-        '';
-    in
-    [ "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"
+    [
       # Make sure that at least 200 GiB of disk space is available.
       "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"
-      #"15 4 * * * root  start hydra-queue-runner"
-      "*/5 * * * * root  ${checkSpace}"
     ];
 
-  jobs.hydra_server = 
-    { name = "hydra-server";
-      startOn = "started network-interfaces";
-      exec = "${pkgs.su}/bin/su - hydra -c 'hydra_server.pl > 
/home/hydra/data/server.log 2>&1'";
-    };
-
-  jobs.hydra_evaluator = 
-    { name = "hydra-evaluator";
-      startOn = "started network-interfaces";
-      exec = "${pkgs.su}/bin/su - hydra -c 'nice -n 5 hydra_evaluator.pl > 
/home/hydra/data/evaluator.log 2>&1'";
-    };
-
-  jobs.hydra_queue_runner = 
-    { name = "hydra-queue-runner";
-      startOn = "started network-interfaces";
-      exec = "${pkgs.su}/bin/su - hydra -c 'nice -n 8 hydra_queue_runner.pl > 
/home/hydra/data/queue_runner.log 2>&1'";
-      postStop = "${pkgs.su}/bin/su - hydra -c 'hydra_queue_runner.pl 
--unlock'";
-    };
-
 }
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to