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

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

问题描述

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

 #[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分钟。当我部署应用程序时,它会引发以下错误:

  [{\domain \:\global \,\message \:\字段'resource.checkIntervalSec'的值无效:'7200'。必须小于或等于300 \,\reason \:\\ \\invalid \}] 

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

解决方案

已知问题,请参阅 issue 360​​24384


$ b app.yaml code>文件显然是乘以一个值。最近,包括你的情况,乘数似乎是30.



所以试着将它设置为8;)并留意这个问题获取电子邮件更新),因为在部署修复程序时您可能需要更新配置的值。


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]

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\"}]

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?

解决方案

Known problem, see issue 36024384.

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.

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天全站免登陆