Slow UrlFetch on google app engine with Laravel 4.2

354 views Asked by At

I use Laravel 4.2 with Google App Engine. I followed a tutorial to run Laravel with gae, and on my gae development server (a VPS with the development SDK 1.9.22) everything works fine and fast. However, since I deployed my code in production, everything works but I note in the trace log that UrlFetch are very slow compared to the developement mode.

Indeed, the bucket is called a lot because Laravel needs some of its files to run, but each call is (very) slow. Google explains how to make Symfony run on gae, and says to use its own bucket instead of the file system as they don't provide access to it.

You can see in this trace log (i.stack.imgur.com/0aetT.png) that each urlFetch is slow (950+ms sometimes) to access a file, transforming a query that lasted barely 1s on my VPS into a query of 4s sometimes in production...

Does anyone know how to improve this ?

Thanks
Alex

0

There are 0 answers