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

Use Rsync instead of NFS #84

Open
reynoldsalec opened this issue Jun 7, 2014 · 11 comments
Open

Use Rsync instead of NFS #84

reynoldsalec opened this issue Jun 7, 2014 · 11 comments
Assignees

Comments

@reynoldsalec
Copy link
Contributor

We'll need to use Vagrant 1.5+ in Kalabox to make this work AND add something to the Kalabox initialization to use vagrant auto-sync, but the modification for this on Kalastack is pretty simple:

config.vm.synced_folder Dir.home + conf["synced_www_folder"]["host_path"] + "/", conf["synced_www_folder"]["guest_path"], :create => conf["synced_www_folder"]["create"], type: "rsync", rsync__args: ["-a"]

Will patch, just don't want to forget.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@andrewmallis
Copy link
Member

Should we should note impact on disk space in the readme?

Also note to check what happens if you have an existing ~/www/mysite but no kalabox vhost entry yet, then import that site. This use-case most often happens if the uninstall tool is run, then kalabox re-installed – we recommend this to users in support.

@pirog
Copy link
Contributor

pirog commented Jun 10, 2014

Now that we are in the github space it might be good to just start generating wiki articles for some of these concerns.

@reynoldsalec
Copy link
Contributor Author

Hmm, the biggest problem with switching over to rsync is that automatic syncing from the virtual down to the host machine isn't working yet. Would have to wait for hashicorp/vagrant#3062 to get completed before we can move forward on this; I'll write a wiki piece about using it for people who are having issues with NFS and want faster performance, but probably not practical right now. Sad.

@reynoldsalec
Copy link
Contributor Author

Suggestion via @pirog: try implementing @substack's https://github.com/substack/sinker.

@reynoldsalec
Copy link
Contributor Author

Added a wiki page regarding basic use of rsync: https://github.com/kalamuna/kalastack/wiki/Using-Rsync-Instead-of-NFS

@pirog
Copy link
Contributor

pirog commented Jun 14, 2014

@reynoldsalec would love to hear any and all feedback regarding sinker implementation!

@reynoldsalec
Copy link
Contributor Author

Trying a proof of concept right now; got it to "work", but it seems to only be doing an initial sync and then not doing any further sync beyond that when further edits are made.

As for basic implementation, would run a host script from Kalabox (@pirog suggested running from the initialize function on the box) and client script from the virtual machine (will need to add the initialization script via init.d).

Pinged @substack on the Sinker queue: https://github.com/substack/sinker/issues/1

@pirog
Copy link
Contributor

pirog commented Jun 16, 2014

I might play around with this later in the week.

@reynoldsalec can you push what you've done to another branch? So we can

image

@pirog
Copy link
Contributor

pirog commented Jun 16, 2014

well, maybe just the collab part

@reynoldsalec
Copy link
Contributor Author

I haven't gone further than what I posted on the Sinker issue queue; with some sort of script to start it on startup, that'd probably be something we could commit, will be working on that on Friday, feel free to branch it before that if you're eager to get going.

@pirog
Copy link
Contributor

pirog commented Jun 25, 2014

@substack is in China now but will be back Monday and is down to help work on Sinker for our purposes :)

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

No branches or pull requests

3 participants