简体   繁体   English

App Engine 灵活部署未能在指定时间内变得健康

[英]App Engine Flexible deployment fails to become healthy in the allotted time

My flask app deployment via App Engine Flex is timing out and after setting debug=True .我通过 App Engine Flex 部署的 flask 应用程序在设置debug=True后超时。 I see the following line repeating over and over until it fails.我看到以下行一遍又一遍地重复,直到它失败。 I am not sure however what this is and cannot find anything useful in logs explorer.但是我不确定这是什么,并且在日志资源管理器中找不到任何有用的东西。

Updating service [default] (this may take several minutes)...working DEBUG: Operation [apps/enhanced-bonito-349015/operations/81b83124-17b1-4d90-abdc-54b3fa28df67] not complete. Waiting to retry.

Could anyone share advice on where to look to resolve this issue?任何人都可以分享有关在哪里寻找解决此问题的建议吗?

Here is my app.yaml (I thought this was due to a memory issue..):这是我的 app.yaml(我认为这是由于 memory 问题..):

runtime: python
env:flex
entrypoint: gunicorn - b :$PORT main:app

runtime_config:
   python_version:3

resources:
   cpu:4
   memory_gb: 12
   disk_size_gb: 1000

readiness_check:
  path: "/readines_check"
  check_interval_sec: 5
  timeout_sec: 4
  failure_threshold: 2
  success_threshold: 2
  app_start_timeout_sec: 300

Error logs:错误日志:

ERROR: (gcloud.app.deploy) Error Response: [4] An internal error occurred while processing task /app-engine-flex/flex_await_healthy/flex_await_healthy>2022-05-10T23:21:10.941Z47607.vt.0: 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.

There could be possible ways to resolve such deployment errors.可能有解决此类部署错误的方法。

  1. Increase the value of app_start_timeout_sec to the maximum value which is 1800app_start_timeout_sec的值增加到最大值1800
  2. Make sure that all the Google Cloud services that Endpoints and ESP require are enabled on your project.确保在您的项目上启用 Endpoints 和 ESP 所需的所有 Google Cloud 服务。
  3. Assuming that splitHealthChecks feature is enabled, make sure to follow all the steps needed when migrating from the legacy version.假设启用了splitHealthChecks功能,请确保遵循从旧版本迁移时所需的所有步骤

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM