Comments (3)
Moreover, now I'm wondering if it is working right...
I just noticed this if I am manually starting the gatling ... so say I up my vagrant, then hit ctrl-c and do something, then start the gatling-rsync-auto again.
==> default: Doing an initial rsync...
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: Watching: /Volumes/Virtua/vagrants/vtag47g
Ok... so it does this "watching" thing. And just sits there using no real CPU time to worry about. Great. Then I change one file in one place. Save. It triggers a new rsync... and another... and another...
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:11:53: The rsync operation completed in 17772.461 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:12:16: The rsync operation completed in 17881.274 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:12:40: The rsync operation completed in 17716.353000000003 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:13:03: The rsync operation completed in 17868.328 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:13:27: The rsync operation completed in 17984.73 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:13:50: The rsync operation completed in 17971.716 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:14:14: The rsync operation completed in 17883.106 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:14:37: The rsync operation completed in 17923.645 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:15:01: The rsync operation completed in 18037.328999999998 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
==> default: 00:15:25: The rsync operation completed in 18150.939000000002 milliseconds.
==> default: Rsyncing folder: /Volumes/Virtua/vagrants/vtag47g/ => /vagrant
==> default: - Exclude: [".vagrant/", ".git/", "vtag/app/css/"]
After that first "watching" wait that occurred, I never see it "watch" or wait again. And so I had not really noticed this when it was launching automatically at "up" time. Is it supposed to constantly run the rsync over and over and over even if no file changes have been made?
from vagrant-gatling-rsync.
same problem here
==> app: Doing an initial rsync...
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: Watching: /Users/warren/Documents/dev/webapp
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:25:30: The rsync operation completed in 11914.019 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:31:04: The rsync operation completed in 10867.479 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:31:31: The rsync operation completed in 10972.454000000002 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:32:35: The rsync operation completed in 10810.747 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:32:52: The rsync operation completed in 10847.154 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:33:04: The rsync operation completed in 10952.222000000002 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:33:17: The rsync operation completed in 12034.800000000001 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:33:29: The rsync operation completed in 10820.224 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:33:41: The rsync operation completed in 10895.018 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 07:33:54: The rsync operation completed in 10788.756 milliseconds.
it used to be around 3s or better, under 1s for a while
number of files
vagrant@app:/vagrant$ find -type f | wc -l
7785
from vagrant-gatling-rsync.
this plugin trigger vagrant rsync. rsync process includes creating ssh connection.
in my case, it is because of slow ssh connection.
$ time vagrant ssh -- true
real 0m11.839s
user 0m1.314s
sys 0m0.253s
this idea leads me to https://gist.github.com/jedi4ever/5657094
then
$ time vagrant ssh -- true
real 0m1.841s
user 0m1.327s
sys 0m0.247s
and eventually
==> app: Doing an initial rsync...
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: Watching: /Users/warren/Documents/dev/webapp
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:40:34: The rsync operation completed in 353.33799999999997 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:40:38: The rsync operation completed in 289.362 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:45:37: The rsync operation completed in 377.86199999999997 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:52:34: The rsync operation completed in 370.39 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:52:36: The rsync operation completed in 325.094 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:52:38: The rsync operation completed in 294.699 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:52:41: The rsync operation completed in 297.048 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:52:43: The rsync operation completed in 303.008 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:52:46: The rsync operation completed in 321.113 milliseconds.
==> app: Rsyncing folder: /Users/warren/Documents/dev/webapp/ => /vagrant
==> app: - Exclude: [".vagrant/", ".git/", "log/", "public/uploads/"]
==> app: 10:52:48: The rsync operation completed in 305.986 milliseconds.
i don't understand why when i delete configuration for dns in my Vagrant file and then reload the machine, ssh connection is still quick. however, this is a different story.
from vagrant-gatling-rsync.
Related Issues (20)
- Owner/Group changed on files inside excluded folder HOT 3
- rsync is sleeping on the host machine HOT 1
- Shorten `vagrant gatling-rsync-auto` command?
- works for 2 file changes and then crashes HOT 1
- Can this be made to use on real servers, not virtual/vagrant boxes? HOT 1
- Verbose mode to list files HOT 1
- Running 'vagrant plugin install gatling-rsync-auto' produces 'Could not find gem' Bundler error HOT 1
- rsync just the modified files?! HOT 5
- Excluded folders
- how to use this plugin in Windows with cwRsync HOT 1
- Run gatling-rsync-auto on resume from suspend
- Two-way sync? HOT 2
- Fedora 23 issue with libffi HOT 1
- Unable to rsync if ssh root-login has been disabled HOT 2
- Rsync triggered on git status command
- Rsync include support
- Rsync multiple source folders to single destination
- Should `config.gatling.rsync_on_startup = true` be inside `if Vagrant.has_plugin?("vagrant-gatling-rsync")`? HOT 1
- Rsync error on vagrant up with Big Sur HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-gatling-rsync.