【问题标题】:App Engine Node flexible instance constantly runningApp Engine Node 灵活实例不断运行
【发布时间】:2016-12-10 22:47:19
【问题描述】:

我在 App Engine 上的项目中运行了多个 Firebase-Queue NodeJS 实例。

实例似乎一直在运行,在尝试 GET 请求后产生错误。

13:33:36.078
{"method":"GET","latencySeconds":"0.000","referer":"-","host":"-","user":"-","code":"502","remote":"130.211.0.96","agent":"GoogleHC/1.0","path":"/_ah/health","size":"166"}
13:33:36.421
{"method":"GET","latencySeconds":"0.000","referer":"-","host":"-","user":"-","code":"502","remote":"130.211.1.229","agent":"GoogleHC/1.0","path":"/_ah/health","size":"166"}

13:33:37.000
[error] 32#0: *80631 connect() failed (111: Connection refused) while connecting to upstream, client: 130.211.1.11, server: , request: "GET /_ah/health HTTP/1.1", upstream: "http://172.18.0.2:8080/_ah/health", host: "10.128.0.5"
13:33:37.000
[error] 32#0: *80633 connect() failed (111: Connection refused) while connecting to upstream, client: 130.211.3.85, server: , request: "GET /_ah/health HTTP/1.1", upstream: "http://172.18.0.2:8080/_ah/health", host: "10.128.0.5"

当我部署 Node 应用程序时,我的 App.yaml 文件如下所示:

runtime: nodejs
env: flex
service: album-queue
skip_files:
- ^(node_modules)

handlers:
- url: .*
  script: build/index.js

我认为它必须与它试图在内部执行的所有这些 GET 请求有关,但我不知道如何阻止它们/修复它。我的账单增长很快,如果能把它修好就好了>_

【问题讨论】:

    标签: google-app-engine app-engine-flexible firebase-queue


    【解决方案1】:

    App Engine Flex doesn't scale to zero 就像标准环境一样。总会有至少一个实例在运行(默认实际上是 2 个)。您看到的请求是normal health checks

    【讨论】:

      猜你喜欢
      • 2018-12-21
      • 2016-10-09
      • 2012-12-31
      • 1970-01-01
      • 2023-03-15
      • 2015-10-27
      • 2020-11-23
      • 2017-04-11
      • 1970-01-01
      相关资源
      最近更新 更多