-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Speedup rsync with ControlMaster & ControlPath? #3331
Comments
Did some testing: Create a SSH master connection:
Run kicker:
Sooo...fast...syncing...wow! |
@ruudk What's kicker? |
It's just for testing this out. It's a filesystem watcher: https://github.com/alloy/kicker |
This would probably speed thigns up a bit but it seems like the major performance problem with rsync-auto is due to listen, not Vagrant. I think that the SSH lookup time isn't too important at this point. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using vagrant 1.5.1 with the gatling-rsync-auto plugin. It works really great. It notices file changes really fast and then launches
vagrant rsync
. The problem is thatvagrant rsync
starts slow.That's because
vagrant rsync
loads thessh-config
first and then creates the rsync command with a new ssh connection every time.The
ssh-config
alone already takes 700 ms on my system:Then I found out about
ControlMaster
andControlPath
. This allows you to setup a connection ones which you can use later.Normal connection:
With
ControlPath
andControlMaster
:Is it possible to integrate this in the rsync command? If the SSH connection stays open,rsync should be faster with syncing, right?
The text was updated successfully, but these errors were encountered: