advancingu/SfDocker

Performance

Opened this issue · 2 comments

Hi,

I just started using Docker few days ago and I am still trying to make best setup for my needs.

I am interested on what performance do you get with this setup and are there way to improve it further?

For example my app is about 5 or more times slower than on "native" setup I used before and I am not sure where the bottleneck is.

Symfony developer toolbar is not detecting this so from the app perspective the timings are normal but the page just renders very slowly.

I guess it could be either nginx setup or symfony cache setup or some other docker <-> host machine config.

I am using OSx as host currently.

Thanks for the insights!

I assume you're using VirtualBox on OS X. File access through a shared folder is notoriously slow with it, meaning that if you have your application code on OS X, mounted into a shared folder in the guest VM that is in turn mounted into the Docker container, performance will suffer greatly.

The best results I've heard of (besides running everything under Linux) can be achieved by having the entire application code base reside with Linux inside the VM (guest) and then sharing that folder from the guest onto the OS X host for editing.

Overall this is more of a VM issue than one of Docker.

I've had great success recently using the dinghy project which wraps
boot2docker and docker-machine but uses NFS rather than file system
emulation to share files between host and vm.

On Thu, Oct 29, 2015 at 9:19 AM Markus Weiland notifications@github.com
wrote:

I assume you're using VirtualBox on OS X. File access through a shared
folder is notoriously slow with it, meaning that if you have your
application code on OS X, mounted into a shared folder in the guest VM that
is in turn mounted into the Docker container, performance will suffer
greatly.

The best results I've heard of (besides running everything under Linux)
can be achieved by having the entire application code base reside with
Linux inside the VM (guest) and then sharing that folder from the guest
onto the OS X host for editing.

Overall this is more of a VM issue than one of Docker.


Reply to this email directly or view it on GitHub
#3 (comment).