folkloreinc / laravel-graphql

Facebook GraphQL for Laravel 5. It supports Relay, eloquent models, validation and GraphiQL.
1.76k stars 234 forks source link

Laravel-graphql + Docker #325

Open derotune opened 6 years ago

derotune commented 6 years ago

Hey everybody,

i run a laravel application inside docker with the laravel-graphql installed. This seems to be very slow as it takes like 2-3 seconds for a normal query. When i start the laravel application on local its like instantly. I think it could have to do something with graphql because the normal api request like on / which just returns a json array is very fast on both, docker and local. Maybe someone has the same problem with running graphql in docker or maybe its a completely different problem..

kevinvdburgt commented 6 years ago

Are you running docker on macos?

derotune commented 6 years ago

Yes. Update on this: its way faster now cause i used the php alpine package. So seems that this is a macos docker problem..but if somebody still knows some configuration to make this fast as possible please tell me :D

ivanfilatov commented 6 years ago

I was facing same problem, but within swarm (1 manager 2 workers, all linux). I managed to solve it by setting "nobarriers" option to /etc/fstab in ext4 partition. Maybe that helps.