Skip to content

Project Status reports unhealthy services

Unhealthy services in Project Status

如果这个项目最近刚被恢复,它可能需要几分钟才能完全运行。

🌐 If the project was recently restored, it can take up a couple minutes to become fully operational.

服务依赖后端数据库。服务不健康可能表示数据库由于容量不足或未正确调优而过载。

🌐 Services rely on the backend database. Unhealthy services can indicate a database being overloaded due to being undersized or not tuned appropriately.

  • 查看这个 故障排除文档 来确定是否可能是资源问题。
  • 如果服务恢复后又变得不健康,很可能是数据库重复过载的问题。

可能的解决方案:

🌐 Possible resolutions:

  • 项目设置中重启数据库(如果项目规模小或未优化,这可能只是一个临时解决办法)。
  • 增加基础设施项目的资源。
  • 对数据库进行性能调优

“Edge Functions 不健康”指示是基于平台层的健康检查,而不是项目自身的函数。可以通过直接调用函数来确认它们是否真正正常工作。如果函数运行正常,这很可能是一个误报。

🌐 The "Edge Functions Unhealthy" indicator is based on a platform-level health check, not the project's own functions. Confirm the actual functions work by invoking them directly. If functions are working fine, this is likely a false positive.

如果只有 Edge Functions 服务显示不健康,请检查以下内容:

🌐 Check the following if only Edge Functions service reports unhealthy:

  • 通过直接调用边缘函数(例如,使用带有 CORS 请求的 cURL)来验证实际的功能行为。如果它响应正常,健康指标很可能是误报。
  • 检查调用日志。使用关键词 ~"health" 过滤日志,看看健康检查调用是否失败,以及是否有任何错误出现。
  • 项目设置 中重启数据库。这在某些情况下可以解决不健康状态,特别是当问题是暂时性的时。