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

Global config for ssh jobs #35

Closed
johnyaku opened this issue Apr 4, 2023 · 2 comments
Closed

Global config for ssh jobs #35

johnyaku opened this issue Apr 4, 2023 · 2 comments

Comments

@johnyaku
Copy link

johnyaku commented Apr 4, 2023

Issue #16 discusses problems caused by DVC initiating too many sessions when communicating with SSH remotes.

This can be configured per remote per project with

dvc remote modify <remote_name> jobs <limit>

The number of sessions is 4 x jobs, so setting jobs to 2 will keep us under the default value of 10 for MaxSessions in /etc/ssh/sshd_config.

It would be helpful if a default value for jobs could be set globally.

@pmrowla
Copy link
Contributor

pmrowla commented Apr 5, 2023

This is already possible using the --global or --system flags (i.e. dvc remote modify --global <remote_name> ...). The config setting will still be per remote, but can be applied to all DVC repo's that use the given remote name for either yourself (with --global) or for anyone using your machine (with --system).

See the docs for dvc config for details https://dvc.org/doc/command-reference/config#description

@pmrowla pmrowla closed this as completed Apr 5, 2023
@johnyaku
Copy link
Author

Thanks @pmrowla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants