haaaddict.blogg.se

Docker on mac slow
Docker on mac slow













docker on mac slow

And still the same functionality and development workflow. Sounds great, no need for slow volume mounts. It allows to sync files from the host machine to Docker containers. Mutagen provides real-time file synchronization and flexible network forwarding for developers, extending the reach of local development tools to cloud-based containers and infrastructure. Thus I looked for possible optimizations.Īfter reading some articles, I decided give Mutagen a try:įirst off. Having the same - or a very similar - setup as in production can be very valuable. Especially if using Docker in production. However, Docker provides advantages as well. Running on Docker without volume mounts is multitudes faster. I investigated a bit and the culprit was volume mount performance (as expected).

docker on mac slow

Compared to other setups like using a VM provided by VirtualBox or running bare-metal directly on the machine. The performance has been lacking, to say the least. I’ve been using Docker for local development for some time now. I’ve added an environment variable that allows disabling it on Docker run if I don’t need to debug. TL DR when using PHP / Drupal xDebug increased Drupal response times by about 5–6x. Issues with intentional mass file changes being prevented by Mutagen safety mechanisms. Development experience not ideal due to delays until files are synced. Mutagen causes high CPU usage when using multiple syncs. TL DR Performance improvement by using Mutagen compared to NFS volume mounts: ~25%.















Docker on mac slow