【发布时间】:2017-01-09 20:46:19
【问题描述】:
我正在通过 Google App Engine 模块/服务提供静态网站。为了改善延迟,我配置了两个 B4 实例不断向上的手动扩展。虽然这通常可以正常工作,但该模块/服务的日志实际上充斥着 /_ah/start 请求。据我了解,这是一个预热请求,最初在实例启动时发送给它。这是我的 app.yaml:
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: /assets/(.*)$
static_files: static/assets/\1
upload: static/.*
secure: always
expiration: "31d"
-
url: '/*'
static_dir: static/
secure: always
skip_files:
- '^(.*/)?#.*#$'
- '^(.*/)?.*~$'
- '^(.*/)?.*\.py[co]$'
- '^(.*/)?\..*$'
- '^(.*/)?.*\.gz'
虽然我们设置了手动扩展的内存驻留实例,但我不明白为什么会经常发出这个请求。事实上,我喜欢认为每个正在服务的 Web 会话都有一个 /_ah/start 请求,这非常奇怪。有没有人有同样的经历?
【问题讨论】:
标签: google-app-engine google-app-engine-python