[Nix-dev] Nix-Store sharing (with NFS + AUFS)?
Matthias Beyer
mail at beyermatthias.de
Sat Jan 16 13:47:18 CET 2016
On 15-01-2016 17:19:37, Rok Garbas wrote:
> Quoting Matthias Beyer (2016-01-15 16:38:30)
> > Hi,
> >
> > I'm currently thinking about the following problem:
> >
> > I want to share the /nix/store from one Master machine to several Slaves, but
> > in a slightly different way than is currently possible with ssh / http:
> >
> > I want _one_ store which contains software, which then can be used by all the
> > slaves (like you'd do with NFS).
> >
> > The Slave machine should still be able to install software with the package
> > manager (nix) but only locally, not globally.
> >
> > So the Slave installs software to /nix/store locally, while /nix/store contains
> > store entries which are hosted on the master.
> >
> > My first idea would be NFS + AUFS, but maybe there are nix-buildin
> > possibilities?
> >
> >
> > Use-Case: Provide a standard-set of software but allow each VM to install own
> > software if needed, while keeping the amount of used storage as small as
> > possible.
> >
> > With the solution I'm searching for, 100 VMs which only use the standard
> > set on software would cause 1 % Storage-use (the packages are only phyiscally
> > available on one machine: the master) of the amount of storage which would be
> > needed with each VM installing the stuff.
> >
>
> you could also just use ``services.nix-serve`` module
> https://github.com/NixOS/nixpkgs/blob/release-15.09/nixos/modules/services/networking/nix-serve.nix
>
> and change all slaves to point their binary cache to Master's url.
>
But wouldn't that cause the slaves to download the binaries from the
master instead of using them directly from the masters harddisc?
--
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer
Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160116/c5cd2f3d/attachment.bin
More information about the nix-dev
mailing list