Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep connection to remote builder alive to improve remote build latency #8499

Open
roberth opened this issue Jun 12, 2023 · 0 comments
Open
Labels
feature Feature request or proposal performance remote build The SSH store, ssh:, ssh-ng:, ... (split from protocol label 2024-07) scheduling store Issues and pull requests concerning the Nix store

Comments

@roberth
Copy link
Member

roberth commented Jun 12, 2023

Is your feature request related to a problem? Please describe.

Currently when doing remote builds, I see a lot of connecting to <hostname>, which can be painfully slow when the remote is in another network, or when the builds are serialized, such as when doing IFD. Deep changes to config files, such as a small configuration change in a NixOS generation may also be particularly affected by this latency, unless we use or advance knowledge about the dependency graph in that case (don't think we do, but also not sure).

Describe the solution you'd like

Have a connection pool for each of the builders.

Describe alternatives you've considered

Use an SSH master connection instead of a pool. I don't think we should force use of this feature though; it is more fragile and it complicates the user's configurations.

Additional context

Priorities

Add 👍 to issues you find important.

@roberth roberth added feature Feature request or proposal performance store Issues and pull requests concerning the Nix store scheduling labels Jun 12, 2023
@roberth roberth added the remote build The SSH store, ssh:, ssh-ng:, ... (split from protocol label 2024-07) label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal performance remote build The SSH store, ssh:, ssh-ng:, ... (split from protocol label 2024-07) scheduling store Issues and pull requests concerning the Nix store
Projects
None yet
Development

No branches or pull requests

1 participant