Giter Site home page Giter Site logo

Comments (3)

nfloersch avatar nfloersch commented on July 28, 2024

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.

ledinhhuy88 avatar ledinhhuy88 commented on July 28, 2024

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.

ledinhhuy88 avatar ledinhhuy88 commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.