flake.nix: parallelize copying in nomad-job-*

This commit is contained in:
Astro 2022-09-22 02:01:23 +02:00
parent 93fc2736bb
commit 52dd8af180

View File

@ -435,7 +435,7 @@
for h in server9 server10 ; do for h in server9 server10 ; do
echo Sharing with $h echo Sharing with $h
ssh root@$h.cluster.zentralwerk.org -- \ ssh root@$h.cluster.zentralwerk.org -- \
bash -e <<EOF bash -e <<EOF &
nix copy --from https://hydra.hq.c3d2.de $JOB nix copy --from https://hydra.hq.c3d2.de $JOB
mkdir -p /glusterfs/fast/microvms/${name} mkdir -p /glusterfs/fast/microvms/${name}
chown microvm:kvm /glusterfs/fast/microvms/${name} chown microvm:kvm /glusterfs/fast/microvms/${name}
@ -445,6 +445,7 @@
ln -sfT $JOB /nix/var/nix/gcroots/microvm/${name} ln -sfT $JOB /nix/var/nix/gcroots/microvm/${name}
EOF EOF
done done
wait
echo Now starting the job echo Now starting the job
ssh root@hydra.serv.zentralwerk.org -- \ ssh root@hydra.serv.zentralwerk.org -- \