-
Notifications
You must be signed in to change notification settings - Fork 108
Performance improvement by "caching" folders in containers #197
Comments
Did some testing using |
This has come up quite a few times in the past, and the blocker has always been finding a good tool that does two-way syncing. I haven't heard of |
Here is what I am currently investigating : https://hub.docker.com/r/mickaelperrin/lsyncd. Works well so far. I use it currently to share a large PHP code and the reactivity of the website is far far more superior. However, I think I will hit surely a problem facing that |
In fact, rather than dealing with the forwarding of In fact, I am wondering if implementing that way we shouldn't be able to implement two-way syncing. Say that I want to share a volume like that 1/ Dinghy creates a temporary folder in the vm, says |
Just tried this by hacking I didn't see before that I thought event were handle more precisely to add/remove files depending on the event. I will investigate to see if I can handle file deletion in an other way, by directly launching If you have better ideas... |
So, I forked I will use it this week in my development workflow and will update this thread to provide some feedback, mainly if it is reliable. |
Cool sounds interesting, I look forward to hearing how it works in practice. |
So, after near one week of usage, here is the first report I can do: The good
So is it magic ? Definitly not, there are some drawbacks to be aware of... The bad
The uglyThe first test was terrible. I needed to setup a large project through the help of
Despite this issues, that's work well for my day to day to usage, and I am pretty happy with it. I think there is definitely room to improve this. I opened a StackOverflow question to see if we can prevent the rsync storm of |
Has unison ever come up? Some of the projects I run are too large to run on my MacBook Pro, so I run them on my dedicated server instead and use unison to sync up the files. My only concern with this kind of approach would be the number of files that would need to be watched. That may be a blocker for any approach like this. |
I've tried docker-sync that uses unison on my Symfony app, but it's a mess. The 2-way sync goes mad when it find file edited on both sides, and this may happen a lot in my use case. I'm still searching for a good setup, I will give dinghy a go, but I fear it will be slow as NFS with VMWare, that I tried yesterday. |
Guys, i am using osx native nfs server and I can confirm almost 30%
performance gain, it is quite straightforward to setup, for example using
docker-machine-nfs.
Il giorno gio 9 feb 2017 alle 09:33 Alessandro Lai <[email protected]>
ha scritto:
I've tried docker-sync <http://docker-sync.io/> that uses unison on my
Symfony app, but it's a mess. The 2-way sync goes mad when it find file
edited on both sides, and this may happen a lot in my use case. I'm still
searching for a good setup, I will give dinghy a go, but I fear it will be
slow as NFS with VMWare, that I tried yesterday.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#197 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAiK730bNHJBZ2BSiQCS06sC60uHydlks5ras90gaJpZM4JCLvb>
.
--
*SPARKFABRIK*
*Paolo Mainardi*
CTO & Founder
tel: +39-340-1678089
skype: paolo_mainardi
http://www.sparkfabrik.com
ᐧ
|
I've tried Dinghy on my Symfony app and it's horribly slow (10x/15x compared to native Linux Docker). |
Hi,
After watching at the performance report done in the comment #166 (comment), I made a simple reading performance test:
grep -r chainthatdoesnotexist /path/to/core/of/large/project/with/multiple/files
Result:
So, it makes me think that I could win a lot of performance by simply making a little script that :
The main issue I currently see is that
fsevents_to_vm
doesn't supportdeletion
events and that would be handled manually.Before starting working on this, I would like to have your opinion over this ? Do you have some advice about that ?
Thanks
The text was updated successfully, but these errors were encountered: