Google App引擎灵活响应缓慢接收502(BadGateway)

时间:2018-03-23 11:02:51

标签: google-app-engine google-cloud-platform

Google App引擎Flex项目响应速度非常慢。 并显示以下错误 错误:服务器错误 服务器遇到临时错误,无法完成您的请求。 请在30秒后重试。

1)将tracert输出到您的应用程序:

追踪路线至[216.239.36.21] 超过30跳

1  2 ms     2 ms     1 ms  router.asus.com [192.168.1.1] 
2  6 ms     2 ms     3 ms  175.139.167.254
3     4 ms     5 ms    10 ms  10.55.49.15
4     7 ms     5 ms     6 ms  10.55.48.66
5    24 ms     7 ms     6 ms  72.14.197.66
6     8 ms     9 ms     9 ms  108.170.250.10
7    21 ms    20 ms    20 ms  64.233.175.109
8    18 ms    15 ms    17 ms  108.170.225.101
9    20 ms    18 ms    18 ms  74.125.37.249
10     *        *        *     Request timed out.
11     *        *        *     Request timed out.
12     *        *        *     Request timed out.
13     *        *        *     Request timed out.
14     *        *        *     Request timed out.
15     *        *        *     Request timed out.
16     *        *        *     Request timed out.
17     *        *        *     Request timed out.
18     *        *        *     Request timed out.
19    25 ms    24 ms    24 ms  any-in-2415.1e100.net [216.239.36.21]

跟踪完成。

2)app.yaml如下

runtime: java
env: flex
manual_scaling:
instances: 1
health_check:
enable_health_check: False
handlers:
- url: /.*
script: this field is required, but ignored
resources:
cpu: 1
memory_gb: 4.0
disk_size_gb: 10

应用程序日志。我想强调的是,很少有端点在GAE日志中显示200或304状态但谷歌Chrome开发者控制台显示502状态

例如 jquery.loading.min.js 在GAE日志上显示304或200但在Chrome开发者控制台上显示状态为502(错误网关)

0 个答案:

没有答案