繁体   English   中英

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

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

我通过 App Engine Flex 部署的 flask 应用程序在设置debug=True后超时。 我看到以下行一遍又一遍地重复,直到它失败。 但是我不确定这是什么,并且在日志资源管理器中找不到任何有用的东西。

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.

任何人都可以分享有关在哪里寻找解决此问题的建议吗?

这是我的 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: (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.

可能有解决此类部署错误的方法。

  1. app_start_timeout_sec的值增加到最大值1800
  2. 确保在您的项目上启用 Endpoints 和 ESP 所需的所有 Google Cloud 服务。
  3. 假设启用了splitHealthChecks功能,请确保遵循从旧版本迁移时所需的所有步骤

暂无
暂无

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

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