feat(web): storage section on status page (FIX-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
2c9e5a1d00
commit
6aaf8c0704
4 files changed
+441
-5
No files matched your search
@@ -119,6 +119,14 @@ PATCH /api/v1/settings {"storage":{"retentionDays":{"observation":60}}}
|
||||
`{ level, alerts[] }`,level 计入总档位。库体积实时取;目录用量只用缓存值,过期时后台刷新,本次不等
|
||||
(进程刚启动时目录项是 unknown,不参与汇总)。
|
||||
|
||||
## 运行状态页「存储」节(FIX-5)
|
||||
|
||||
控制台 → 运行状态最下方。`GET /system/health` 的 `storage.level / alerts` 显示为档位与告警条(横幅也会提示),
|
||||
`GET /system/storage` 显示:数据库体积 / 图片缓存 / 备份 / 会话与证据对照预算的用量条(竖线是告警线)、体积前 10 的表、
|
||||
`kv_cache` 各类缓存的条数 / 已过期 / 体积、DATA_DIR 各子目录占用、各清理任务的保留期与上次结果。每行「立即清理」调
|
||||
`POST /system/storage/cleanup/{target}`(已在排队或运行中则合并),结果看计划页的运行记录。明细每分钟刷新,目录用量服务端缓存 5 分钟。
|
||||
代码:`apps/web/app/components/status/storage-section.tsx`。
|
||||
|
||||
## PG 参数
|
||||
|
||||
`docker-compose.yml` 的 postgres 服务按 4C / 8G 给 PG 3G 内存:
|
||||
|
||||
Reference in new issue
Block a user