Docker performance on Mac OS X

25 views
Skip to first unread message

Chris Wedgwood

unread,
Sep 23, 2019, 3:03:16 AM9/23/19
to django...@googlegroups.com
Hi All

I generally use the Django Cookiecutter project to start my projects and have started using docker for my local development.

However I have started to get some really awful performance with pageloads taking 30-40 seconds. I am know considering stopping using docker entirely.

Has anyone else encountered this on Mac OS and have any wisdom to share to alleviate?

Thanks
Chris

Jason

unread,
Sep 23, 2019, 7:18:03 AM9/23/19
to Django users
What kind of hardware are you working with?  What resources do you have allocated to Docker.  Are you including tens of thousands of files in volume mounts?

We use docker extensively at work, and I've found it helps to have at least half of your machine's hardware available to docker.  My 2018 MBP has 5 cores and 10GB RAM allocated.

However, docker is very sensitive to the amount of files being included and being watched over.  SO if you have thousands to tens of thousands of files in your volume mount symlinks, performance is going to be poor.

Chris Wedgwood

unread,
Sep 23, 2019, 11:18:52 AM9/23/19
to Django users
Hi Jason

Thank you for your response. I misdaignosed my issue. It actually had nothing to do with Docker and instead was a slow performing form in the django admin that had a widget referencing a foreign key which was taking forever to build.

I fixed it with raw_id_fields, so am now back on docker

In terms of my docker usage I will verse myself in allocations etc

cheers
Chris
Reply all
Reply to author
Forward
0 new messages