I am using 2 manually scaled B4 (python27) instances to serve static web assets. As this should configure memory-resident instances that are always on, I was surprised to find the module/service's log to be littered with /_ah/start (warmup) requests (virtually every few milliseconds, probably with every new web session). As the site's latency is not where we want it to be, I am growing concerned that there is something odd with our setup. The app.yaml for this module/service looks like that:
version: 2
runtime: python27
api_version: 1
threadsafe: true
module: site
default_expiration: "2d"
instance_class: B4
manual_scaling:
instances: 2
handlers:
-
url: /proxy/vimeo
script: site_main.app
secure: always
-
url: /auth/vimeo\.html
static_files: static/vimeo.html
upload: static/vimeo.html
secure: always
-
url: '/[^\.]*$'
static_files: static/index.html
upload: static/index.html
secure: always
-
url: /manifest\.webapp
static_files: static/manifest.webapp
upload: static/manifest.webapp
secure: always
mime_type: application/manifest+json
-
url: /assets/(.*)$
static_files: static/assets/\1
upload: static/.*
secure: always
expiration: "31d"
-
url: '/*'
static_dir: static/
secure: always
skip_files:
- '^(.*/)?#.*#$'
- '^(.*/)?.*~$'
- '^(.*/)?.*\.py[co]$'
- '^(.*/)?\..*$'
- '^(.*/)?.*\.gz'
Any ideas would be much appreciated.
Soeren