GET /v1/admin/system-db-pool
读取应答主控进程的数据库连接池:当前值、最近 1 小时、常驻连接与告警状态
说明(契约原文)
Platform identity with control.upgrades.read or platform.admin (the maintenance page). The figures come from the memory of the control-api process that answers, sampled every 10 seconds: a cycle is bad when in use reaches max_conns - saturation_margin, the average acquire wait exceeds slow_acquire_ms, or an acquire gave up while the pool was full or queued (canceled_acquire, which alerts at once). enter_cycles consecutive bad cycles notify the platform members holding control.upgrades.read or platform.admin (control.db_pool.saturated, also in the administrator message center); recover_cycles consecutive clean cycles send control.db_pool.recovered. An alert entered within dedup_minutes of the last notified one is not sent (notified=false) unless it is still firing once that window has passed. Notifications are written on a connection outside the pool. Only the session check reads the database. Read-only, not audited.
响应
| 状态码 | 说明 |
|---|---|
200 | The pool monitor of the answering process. 字段: |
401 | Authentication failed or the session is invalid. |
403 | Not a platform identity with control.upgrades.read or platform.admin. |
405 | Only GET is supported. |
失败时怎么办
401检查凭据格式、是否过期或被轮换。403检查 Key 范围与所有者当前权限、当前租户作用域;不要换更高权限账号绕过。