From 64399991a7686cfec29b2c5a0efe208d1b9809a1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 6 Nov 2012 17:13:17 +0100 Subject: [PATCH] Give Hydra binary caches a low priority We only want to hit a Hydra binary cache if static caches don't provide a binary. --- src/lib/Hydra/Controller/Root.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index 832f2b23..9a2b0c39 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -202,7 +202,10 @@ sub nix_cache_info :Path('nix-cache-info') :Args(0) { $c->stash->{'plain'} = { data => #"StoreDir: $Nix::Config::storeDir\n" . # FIXME "StoreDir: /nix/store\n" . - "WantMassQuery: 0\n" + "WantMassQuery: 0\n" . + # Give Hydra binary caches a very low priority (lower than the + # static binary cache http://nixos.org/binary-cache). + "Priority: 100\n" }; $c->forward('Hydra::View::Plain'); }