成功部署后,Google App Engine 不会运行任何实例

Don*_*Kim 6 python google-app-engine

我已经使用 Google Cloud Platform 3 个月了。这很酷,但有时它让我生气。

最近,我一直在努力解决 Google App Engine 的“无实例”问题,如下所示:

  1. 当许多 GAE 实例运行良好时
  2. 新部署完成(使用 appcfg.py)
  3. 所有 GAE 实例都消失了,并且没有任何实例正在运行(“此应用没有部署任何实例。”Google Developers Console 说。)

今天我遇到了这个问题 3 次以上。当问题发生时,我尝试了以下操作:

  • 重新部署(同版本)
  • 重新部署(另一个版本)
  • 更改默认版本

一段时间后(10~20 分钟)问题解决。但我不知道问题是否因为我的尝试而得到解决。

我很少遇到这个问题,但是最近这个问题经常发生。(而且很烦人。)

——

我正在使用 python27 运行时和 automatic_scaling,如下所示:

# app.yaml
runtime: python27
api_version: 1
threadsafe: false

#...

builtins:
- deferred: on

inbound_services:
- warmup

instance_class: F1
automatic_scaling:
  max_pending_latency: 30ms
  min_idle_instances: 2
  max_idle_instances: 10
Run Code Online (Sandbox Code Playgroud)

Sho*_*hit 3

我浏览了 Google 小组,发现许多应用程序在该特定日期都面临相同的问题。似乎在那段时间出现了一些问题,现在已得到解决。Google 网上论坛的链接 [1][2]。

[1] https://groups.google.com/forum/#!topic/google-appengine/z7mn5ay11gc

[2] https://groups.google.com/forum/#!topic/google-appengine/whriQ28tPMg