docs(deploy): check Gateway readiness through the published nginx port (#8587)

This commit is contained in:
Hu Hongwei 2026-11-25 08:52:48 +08:00 committed by GitHub
parent 4223e0710c
commit c76d54a313
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 20 additions and 24 deletions

View File

@ -227,17 +227,13 @@ openssl rand -base64 32
## Deployment verification
After starting, verify the deployment:
From the host, check Gateway readiness through the nginx address you use for the workspace. The example uses the default `localhost:2026`. If you changed the Compose port, use the host port reported by `docker port deer-flow-nginx 2026/tcp`.
```bash
# Check Gateway health
curl http://localhost:8001/health
# List configured models (through nginx)
curl http://localhost:2026/api/models
curl -i http://localhost:2026/health/ready
```
A working deployment returns a `200` response from each endpoint. The `/api/models` call returns the list of models from your `config.yaml`.
A ready Gateway returns HTTP 200 and `"status": "ready"`. HTTP 503 with `"status": "degraded"` means a required dependency check failed. This endpoint is public. Listing models at `/api/models` requires credentials when authentication is enabled.
<Cards num={2}>
<Cards.Card title="Configuration" href="/docs/application/configuration" />

View File

@ -33,16 +33,18 @@ log_level: debug # debug | info | warning | error
## Health checks
Verify each service is responding:
Use the nginx address and port for your workspace (shown here with the defaults). These checks work from the host with local processes and Docker Compose.
```bash
# Gateway health
curl http://localhost:8001/health
# Is the Gateway process responding?
curl -i http://localhost:2026/health
# Through nginx (verifies full proxy chain)
curl http://localhost:2026/api/models
# Are the dependencies needed to serve runs ready?
curl -i http://localhost:2026/health/ready
```
If liveness returns 200 but readiness returns 503, inspect the readiness response for the failing dependency.
## Upgrading an existing checkout
Keep your existing `config.yaml`, `.env`, and `extensions_config.json`; do not

View File

@ -221,17 +221,13 @@ openssl rand -base64 32
## 部署后验证
启动后验证部署:
在宿主机上,通过访问工作区时使用的 nginx 地址检查 Gateway 是否就绪。下例使用默认地址 `localhost:2026`。如果更改了 Compose 的端口,请使用 `docker port deer-flow-nginx 2026/tcp` 显示的宿主机端口。
```bash
# 检查 Gateway 健康状态
curl http://localhost:8001/health
# 通过 nginx 列出配置的模型(验证完整代理链)
curl http://localhost:2026/api/models
curl -i http://localhost:2026/health/ready
```
正常工作的部署会从每个端点返回 `200` 响应。`/api/models` 调用会返回你 `config.yaml` 中的模型列表。
Gateway 就绪时返回 HTTP 200 和 `"status": "ready"`。HTTP 503 和 `"status": "degraded"` 表示必要依赖的检查失败。就绪检查可匿名访问。开启认证后,通过 `/api/models` 查看模型需要凭据。
<Cards num={2}>
<Cards.Card title="配置" href="/docs/application/configuration" />

View File

@ -34,16 +34,18 @@ log_level: debug # debug | info | warning | error
## 健康检查
DeerFlow 暴露健康检查端点:
通过工作区使用的 nginx 地址和端口检查 Gateway(下例使用默认值)。在宿主机上运行这些命令可检查本地进程或 Docker Compose 部署。
```bash
# Gateway 健康状态
curl http://localhost:8001/health
# Gateway 进程是否响应?
curl -i http://localhost:2026/health
# 通过 nginx 完整代理链验证
curl http://localhost:2026/api/models
# 处理运行请求所需的依赖是否就绪?
curl -i http://localhost:2026/health/ready
```
如果存活检查返回 200、就绪检查返回 503,请查看就绪检查的响应,定位出错的依赖。
## 升级已有的代码仓库
保留现有的 `config.yaml`、`.env` 和 `extensions_config.json`,不要再次运行