app.yaml 中的 GAE "min_pending_latency" 错误

GAE "min_pending_latency" error in app.yaml

我刚刚在我的本地机器上完成了一个 gcloud components update 并且在部署我的应用程序时遇到了几个新错误。我能够通过几分钟的故障排除修复大部分这些新错误(我知道 gcloud preview app 命令仍然是 'preview',所以我希望这里有一些变化。)

我现在遇到一个我似乎无法修复的错误(错误?)。

ERROR: (gcloud.preview.app.deploy) Error Response: [400]
version.automatic_scaling.min_pending_latency (nanos: 300000000),
must be in the range [0.010000s,15.000000s].

所以,如果我错了,请纠正我,但我很确定 300000000 纳米落在错误中定义的可接受范围内。

这些是我的 app.yaml

的相关部分
module: api
runtime: php55
api_version: 1
threadsafe: true

instance_class: F2
automatic_scaling:
  min_idle_instances: automatic
  max_idle_instances: automatic
  min_pending_latency: 300ms
  max_pending_latency: 1s

我刚刚在我的应用程序上尝试了 300ms 配置,但使用 GAE SDK 的 appcfg.py 进行了更新 - 没问题,这支持您对 gcloud preview CLI 中的错误的怀疑。您可能想要提交 Google Cloud SDK Issue Tracker.

的问题

作为解决方法,您可以:

  • 查看@klenwell 对此问答的回答,了解新位置 appcfg.py 在 Google 云 SDK 中:
  • 使用 GAE SDK 的 appcfg.py 更新您的应用程序。