【发布时间】:2021-06-06 20:49:13
【问题描述】:
如果我的 app.yaml 文件的一部分如下所示:
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /static
static_dir: public
- url: /.*
secure: always
redirect_http_response_code: 301
script: auto
automatic_scaling:
min_idle_instances: automatic
max_idle_instances: automatic
min_pending_latency: automatic
max_pending_latency: automatic
max_concurrent_requests: 1
min_instances: 1
max_instances: 10
那么我的静态内容是否也受到应用缩放参数的影响?例如,它是否会在每个节点上以相同的max_concurrent_requests 限制运行?
我的假设是,服务 /static 将是一个完全不同的层,独立于在 GAE 中为您的应用运行的实例。我试图找到一个确认这种解耦的架构图(可能是一个带有 LB 运行到 GAE 应用程序实例节点的 nginx 的图)。
理想情况下,一个明确的答案将通过参考 Google Cloud 文档材料来限定。
我找到的最接近的相关文档是这个,但它没有明确回答我的问题:
【问题讨论】:
-
您的假设是正确的,但我没有找到文档或演示文稿来证明这一点。
标签: google-app-engine google-cloud-platform yaml app.yaml