Slow loading of static files hosted on GAE
My site (www.nykidplaces.com) is hosted on Google App Engine.
Loading the home page is sometimes very slow, 10 seconds or more. After some profiling, I noticed that the problem is usually caused by loading a static file (css, javascript or images). Most static files load quickly, but sometimes a single random static file will load very slowly.
For example, this 4Kb file usually takes <200ms to load, but sometimes takes much longer:
while true; do time wget http://www.nykidplaces.com/styles/toastr.css --quiet; done
real 0m0.163s
real 0m0.154s
real 0m3.335s slow
Any ideas on what might be causing this?
My .yaml file:
version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: / images static_dir: images - url: / styles static_dir: styles - url: / javascript static_dir: javascript - url: /.* script: daycares.application libraries: - name: webapp2 version: latest - name: MySQLdb version: "latest" - name: jinja2 version: latest
+3
source to share