[Nix-dev] Sharing the Nix store between systems

Lluís Batlle i Rossell viric at viric.name
Tue Dec 13 09:20:32 CET 2011


On Tue, Dec 13, 2011 at 12:39:40AM +0100, Rickard Nilsson wrote:
> one x86_64). Unfortunately, the database got severly corrupted when both  
> machines was building things at the same time. I guess this is a feature  
> of sqlite+NFS+file locks.

Afaik, NFS 'file locks' are rarely well implemented, and often work bad. If you
expect that they will automatically work in your setup, you may be wrong.

> One idea could be if slave build machines didn't build directly into the  
> store used by the host itself, but instead wrote to a temporary store, and  
> also to a temporary database (or maybe it doesn't need to write to any db  
> at all). The master host could then pick up the build results and put them  
> into its database and into the shared store. I think that, in theory, this  
> scheme could work. How about in practice?

I don't know how much remote can NIX_REMOTE be.


More information about the nix-dev mailing list