-
Notifications
You must be signed in to change notification settings - Fork 4
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
Performance for system ssh and scp commands needs to be improved #639
Comments
Just wanting to at least present another option: start a connection to the node at the beginning and end it when everything is done. This would mean only the initial connection is slow, but the next connections will multiplex on the previous connection. https://www.cyberciti.biz/faq/linux-unix-reuse-openssh-connection/ |
ssh and scp are wrapped in a powershell script. The reason why it takes so long is the loading of the modules. Currently the "main" modules (infra. node, cluster modules) are loaded. When loading only the really needed ones the performance can be improved by 50%: for for |
This can already be achieved with |
Is your feature request related to a problem? Please describe.
Whenever k2s system ssh and k2s system scp commands are executed, they take sometime more than 20-30 seconds to begin execution.
When many such commands have to executed in sequence, significate delays are observed.
Describe the solution you'd like
Improve performance of k2s system ssh and scp commands.
Describe alternatives you've considered
When many ssh commands have to be executed in sequence, I generally abstract all such commands in a bash script or a powershell script. This powershell script or bash script is copied onto the node using k2s system scp command and then executed with k2s system ssh commands, So the overall execution time is less than a minute.
Additional context
N.A.
The text was updated successfully, but these errors were encountered: