Skip to content

Commit

Permalink
Disable SSH connection sharing.
Browse files Browse the repository at this point in the history
If you perform a really large number of concurrent builds, you run into
"broken pipe" issues and SSH connections seem to be delayed for up to 20 minutes
in my experiments. I don't know exactly what limit we hit.

We could perhaps set up multiple remote Nix builders, each pointing to
eu.nixbuild.net, but using different control sockets and having a limited
max nix jobs setting. That way the number of sessions per socket would be
limited. However, nix will probably open more sessions then just one per build,
(to query for valid paths, fetch outputs etc) so it would still be difficult to
know how many concurrent sessions each socket would receive.
  • Loading branch information
rickynils committed Feb 24, 2021
1 parent 6f3203e commit e69f6d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nixbuild-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ Host eu.nixbuild.net
LogLevel ERROR
StrictHostKeyChecking yes
UserKnownHostsFile $SSH_KNOWN_HOSTS_FILE
ControlMaster auto
ControlPersist 300
ControlPath ~/.ssh/nixbuild_socket
ControlPath none
EOF


Expand Down

0 comments on commit e69f6d7

Please sign in to comment.