[Nix-dev] If remote build machine is not reachable build jobs hang. (zeroconf ?)

Eelco Dolstra e.dolstra at tudelft.nl
Wed Apr 28 16:18:22 CEST 2010


Hi,

On 04/27/2010 09:55 PM, Marc Weber wrote:

> This is very annoying because you can't even rebuild nixos without patching,
> can you?

You can use --no-build-hook when that happens.

> So what about introducing a new env var called NIX_REMOTE_PING_TIMEOUT
> which causes the build-remote.pl script to ping a machine before sending a
> buiild request?

Pinging may not work if the target machine is behind a firewall.

A while ago (r19794) I modified build-remote.pl to try to connect to a machine
and fall back to using other machines of the right type if that fails.  Doesn't
this already do what you need?  (If it takes too long to fail, you may want to
look at the ConnectTimeout ssh option.)

> I've written this patch (without testing yet). What do you think about it?

This patch will probably cause many unnecessary pings, because it pings all
machines every time the configuration file is read (which may be very often).

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list