-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
docker-sync support #105
Comments
@bsormagec thanks for pointing it out. Can you direct me to some more documentation about this. |
Hello, Any plans to include it in the upcoming releases - on OSX without docker-sync web apps are awfully slow. Regards |
+1, without docker-sync there are a couple of options for os x when mounting shares using bind mounts:
(Source: https://docs.docker.com/engine/admin/volumes/bind-mounts/#configure-mount-consistency-for-macos) Unfortunately though none of them appear to resolve the bi-directional sync without huge performance overheads (in the case of the default consistent setting) or persistence issues (e.g. if uploading images to a cms and building up a site's content locally with the docker container instance). Using vagrant in the past for large Magento builds I tried both unison and gatling-rsync, the latter being more performant and the final solution chosen which worked wonders. It ended up being a v similar setup to the docker-sync native_osx implementation, more reading material here:
As an aside a short term workaround to resolve performance issues at the moment is to use memcache/redis caching which works really well, managed to get a basic WordPress instance sub 80ms fully rendered in the browser! |
Any news about a well usable and reasonably fast system under osx? Have tried to extend the Makefile on my own (process to include docker-sync-stack). But it does not work well... |
This is still on the agenda, however the roadmap is currently really filled and me alone working on that takes some time. Probably somebody wants to jump in on this issue and submit a PR. |
I tried setting up docker-sync but ended up somehow making docker use 400% cpu...will try again though as it's almost unusable on OSX as it stands. |
@cytopia What would it cost to sponsor you to move this to the top of the list? |
@johnwbaxter I'd rather have someone helping me on this issue, as I dont' have a Mac at the moment. So I cannot get sponsored on this one and make an unreliable promises/guess. But thank you for bringing this up. |
There seems to be a native approach by Docker for volume mounts with the following options:
How would one of those strategy perform against the current mount options: Might give it a try. If this does not work out, I will have alook into docker-sync |
@bsormagec @vzlatev @Richdel @mad99 @johnwbaxter The above suggestion should now be easily achievable via global mount options: https://devilbox.readthedocs.io/en/latest/configuration-files/env-file.html#mount-options |
Has anyone solved this problem by using docker-sync or the global mount options? If yes, could you please tell us your configuration? Thanks in advance! |
@ericfynnmaier have you already tried one of these:
Probably |
@cytopia thank you! I added |
Refs #105 document how to mitigate OSX performance issues
|
@vielhuber I haven't looked into Windows yet for those kinds of performance improvements. Any idea what alternatives are offered for Windows |
The only tool everybody is mentionning is "docker-sync" (http://docker-sync.io/). |
OK, didn't know that this also works on Windows. |
Docker Sync Support (PR open)@bsormagec @vzlatev @Richdel @mad99 @johnwbaxter @ericfynnmaier @vielhuber @jeffwhitfield @anselmdk @krebbi @chiribuc @OksanaRomaniv @akuehn @lesteak @Yame- @Ohrlab I have created a first working draft including instructions how to get this working. Thanks again to @chiribuc jumping in and providing a working example. |
I have tested docker-sync on my updated windows 10 machine with latest stable docker for desktop. Mainly because of slow magento 2 project. I'm using latest devilbox from master branch and I have added docker-sync.yml & docker-compose-dev.yml file (from docker-sync branch) to devilbox root folder. I did run docker-sync and get "success Starting Docker-Sync in the background", but can't see any improvements in loading times or deployment (php bin/magento setup:static-content:deploy) for magento 2 project. Probably I'm missing something? |
@buderus199 Did you adjust (uncomment) the https://github.com/cytopia/devilbox/pull/535/files#diff-09bf18a28f8967be55bc552a00f967dfR32 |
@cytopia yes I have used This is the output when running
And it stays like this for hours. Not sure if it is normal to stay like this... |
@buderus199 If the docker-sync command stales, its probably something to ask these guys: https://github.com/EugenMayer/docker-sync/ |
I'm using the PR for this and noticing a definite performance improvement on MacOS. CPU usage seems significantly lighter on page loads. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey, do you imagine this would still work if I updated to the latest version? Been holding off updating due to this but don't know if anything relevant has really changed. |
Still at this date, the last version of devilbox on mac , using laravel...very slow. |
Same here. It's incredible slow on my Macbook Pro. |
The performance is still an issue with MacOS itself - they haven't improved it yet (since years). |
@cytopia Since they seem to have found an intense debate on this setting, would it not be possible to default it to native, and in instructions for macos say uncomment this line from the .env sample?
env-sample
It seems like the extra step to add 1 line to .env file is much better than being without this feature to fix the MacOS performance problem. |
Has your mac situation changed since 2018? You said "... as I dont' have a Mac at the moment." If you have you developed a devilbox specific docker-sync.yml file for PR #535, I'd love to give it a spin and report back my test results here. Simply put, I'm volunteering time to help, any way I can, to help get the docker-sync feature off the ground. Thanks @cytopia for all your amazing work on DevilBox! -Dan |
@cytopia or anyone really has there been any movement on this front? |
Docker on Mac has an experimental feature now that allows directory sharing using a Monterey only function called VirtioFS. I'm currently experimenting with it to see if everything runs ok using this. So far it speeds up the containers significantly, especially on requests with a lot of file reads. Last week i had some issues with composer packages, giving it another go now. |
@Lenitr that sounds awesome. Is that all you needed to do, no settings withing devilbox? |
@anselmdk Yes, correct. The slowness was not a Devilbox issue, but rather Docker on Mac issue. Sharing the filesystem was very slow, but this new technique seems to be a bit faster. Only changing the setting in Docker desktop sped up the containers for me. To manage your expectations though, it's still not as fast as running any Docker containers on a Linux host, but it's a nice improvement. |
I think docker-sync support will be good for mac because docker has poor performance on osx. Can you add this to devilbox ?
The text was updated successfully, but these errors were encountered: