> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /healthz — 后端与数据库健康检查探针

> 对数据库执行 ping 的存活接口。健康时返回 200 与状态对象，数据库不可达时返回 503。

对 PostgreSQL 数据库执行 ping 的存活探针。可用作 Kubernetes 的存活或就绪探针，也可从你的监控系统调用。

<Note>
  本接口位于域名根（`/healthz`），而非 `/api` 下。
</Note>

**方法：** `GET` **路径：** `/healthz` **认证：** 无

## 响应

`200 OK`

```json theme={null}
{ "status": "ok" }
```

数据库 ping 失败时为 `503 Service Unavailable`。

```json theme={null}
{ "error": "database unavailable" }
```

## 示例

```bash theme={null}
curl -i https://ariacompute.cn/healthz
```
