【问题标题】:Handling /_ah/start and /_ah/stop requests on App Engine在 App Engine 上处理 /_ah/start 和 /_ah/stop 请求
【发布时间】:2019-01-18 13:40:06
【问题描述】:

我应该如何处理/_ah/start/_ah/stop 请求?现在他们只是得到404。

另外,为什么有时开始和停止相隔 10 分钟,有时相隔 1 分钟?

app.yaml 看起来像这样:

instance_class: B4_1G
basic_scaling:
  max_instances: 11
  idle_timeout: 60m

App Engine logs

【问题讨论】:

  • 您使用的是 Standard 还是 Flex 环境?
  • 标准环境。

标签: node.js google-app-engine app.yaml


【解决方案1】:

您可以使用 Express 来处理您的请求,例如

app.get('/_ah/start', (req, res) => { //rest of the code

至于为什么请求之间的时间差异,这取决于您的应用程序的使用情况。您会收到对/_ah/startwhen there is the need to start a new instance/_ah/stop 的重启/停止请求

【讨论】:

    猜你喜欢
    • 2019-04-26
    • 1970-01-01
    • 1970-01-01
    • 2017-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-23
    • 1970-01-01
    相关资源
    最近更新 更多