1

我在 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 请求有关,但我不知道如何阻止它们/修复它。我的账单很快就增加了,所以把它修好会很好>_<

4

1 回答 1

3

App Engine Flex不会像标准环境那样缩放到零。总会有至少一个实例在运行(默认实际上是 2 个)。您看到的请求是正常的健康检查

于 2016-12-10T14:47:19.047 回答