我们更新了我们的谷歌应用程序引擎运行状况检查,从旧版本升级到新版本,现在我们的部署失败了。该项目没有其他任何改变。我们测试了默认设置,然后进行了扩展检查以防万一。是否更新健康检查,导致App Engine部署失败?
这是错误: ERROR: (gcloud.app.deploy) Error Response: [4] Your deployment has failed to become healthy in the allotted time and therefore was rolled back. If you believe this was an error, try adjusting the 'app_start_timeout_sec' setting in the 'readiness_check' section.
这是我们的app.yaml:
liveness_check:
check_interval_sec: 120
timeout_sec: 40
failure_threshold: 5
success_threshold: 5
initial_delay_sec: 500
readiness_check:
check_interval_sec: 120
timeout_sec: 40
failure_threshold: 5
success_threshold: 5
app_start_timeout_sec: 1500
不幸的是,无论配置,无论是准备和活跃度检查抛出404。
什么可能导致问题?我们该如何调试呢? 是否可以回滚到传统健康检查?
更新:更新后的运行状况检查导致问题。我们只是改变了我们的app.yaml使用传统的健康检查,我们能够顺利部署。 – Mike
你如何回到使用传统健康检查?命令'gcloud beta app update --split-health-checks'只能用一种方法。 – speedplane
现在(直到2018-09-30),您可以运行'gcloud app update --no-split-health-checks'并重新部署,回滚到旧的运行状况检查。但请注意,2018年9月底之前的健康检查将会消失。来源:https://cloud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml#health_checks – sengi