由于运行状况检查间隔,部署到 Google App Engine 不起作用,即使我低于限制 [英] Deploying to Google App Engine does not work due to health check interval even though I am below the limit

查看:25
本文介绍了由于运行状况检查间隔,部署到 Google App Engine 不起作用,即使我低于限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近对我的 app.yaml 文件(针对 Node.js 项目)进行了一些更改,并决定将我的健康检查 ping 间隔延长至 4 分钟.根据 app.yaml 文档check_interval_sec 应该包含一个整数,表示进行一次健康检查之间的秒数.默认为 5,但我想更改它,因此我执行了以下操作:

I recently made some changes to my app.yaml file (for a Node.js project) and decided to extend my health check pings to 4 minute intervals. According to the app.yaml documentation, the check_interval_sec should contain an integer t hat represents the number of seconds between a health check is conducted. This defaults to 5 but I wanted to change it so I did the following:

# [START app_yaml]
runtime: nodejs
env: flex
automatic_scaling:
    min_num_instances: 1
    max_num_instances: 2
health_check:
    enable_health_check: True
    check_interval_sec: 240
    timeout_sec: 4
    unhealthy_threshold: 2
    healthy_threshold: 2
env_variables:
    NODE_ENV: development
# [END app_yaml]

如您所见,我将限制设置为 240 秒,即 4 分钟.当我部署应用程序时,它抛出以下错误:

As you can see, I set the limit to 240 seconds which is 4 minutes. When I deploy the application, it throws the following error:

[{"domain":"global","message":"Invalid value for field 'resource.checkIntervalSec': '7200'. Must be less than or equal to 300","reason":"invalid"}]

请注意,错误说我的 check_interval_sec 必须低于 300,但显然我提交了 7200?不知道这里发生了什么.有谁知道如何解决这个问题?

Notice that the error says my check_interval_sec must be below 300 but apparently I submitted 7200? Not sure what's going on here. Does anyone know how to fix this?

推荐答案

已知问题,参见 issue 360​​24384.

app.yaml 文件中配置的值显然是乘以一个值.最近,包括在您的情况下,乘数似乎是 30.

The value configured in the app.yaml file is apparently multiplied by a value. More recently, including in your case, the multiplier appears to be 30.

因此尝试将其设置为 8 ;) 并密切关注问题(为它加星以获取电子邮件更新),因为何时部署修复程序,您可能想要更新配置的值.

So try to set it to 8 ;) And keep an eye on the issue (star it to get email updates) as when the fix will be deployed you'd probably want to update the configured value.

这篇关于由于运行状况检查间隔,部署到 Google App Engine 不起作用,即使我低于限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆