update: 编辑整理文档 deployment

MemRelay-Operation: curated-update:bb1539bd-c7f2-4d57-9257-8e4b2b4672cb:3
MemRelay-Resource: bb1539bd-c7f2-4d57-9257-8e4b2b4672cb
This commit is contained in:
2026-10-08 16:08:00 +08:00
parent 00f80449e5
commit 6448abcd25
2 changed files with 62 additions and 66 deletions
@@ -1,66 +0,0 @@
---
title: Metrix 源码一致的术语表
type: curated
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/metrix-源码一致的术语表
stable_id: 6c3351ae-506f-4059-a23d-6937503b9b73
scope: project
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
workspace_type: development
usage_profile_id: null
preference_context: development
document_type: glossary
revision: 2
source_memory_ids: []
source_checkpoint_ids: []
source_file_ids: []
source_git_commit: e660bc7bb4fc5ccda47decb4d514874a148ed9b2
source_git_commits:
- e660bc7bb4fc5ccda47decb4d514874a148ed9b2
source_agent_sync_ids: []
model_connection: Sub2API
model_name: manual
source_count: 29
source_revisions: {}
source_dispositions:
processed: 29
unchanged: 0
unsupported: 0
skipped: 0
cited_source_ids:
- git:server/app/core/permissions.py
- git:server/app/core/security.py
- git:server/app/main.py
- git:packaging/README.md
- git:packaging/pypiserver/Dockerfile
job_cited_source_ids: []
conflicts: []
supersedes: []
preferences: []
source_cursor: 162
source_hash: e2fcea7c8a9e0df7a91925fb2a9beabd922058868310effc908f95df2d78b218
prompt_version: 2026-08-12.3
schema_version: '3'
curation_job_id: null
created_at: '2026-09-23T15:09:21.161919+00:00'
updated_at: '2026-10-08T07:05:12.202546+00:00'
tags:
- curated
- manual
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
---
# Metrix 术语
APP_MODULE:后端模块元数据,声明router、model、权限、迁移和生命周期;前端对应index.ts模块声明页面菜单,两边分别自动发现。
action RBAC:权限格式action:<resource>:<action>,资源read作为页面入口,manage_others用于跨用户数据操作。不是container:start这种省略前缀的权限码。
API Token:持久化哈希Token,复用所属用户角色权限;与Web登录会话区分,部分管理接口仅Web可用。
Shiki:本地TextMate高亮,配合Monaco;当前脚本和SQL编辑器均监听明暗主题变化。
CapacityReport:plugins/下独立FastAPI/Vue容量报表项目,源和仓库分别直连或使用Metrix API,有Tauri桌面壳;CellData仍含直连路径。
InterferenceETL:plugins/下独立Python批处理,通过平台API读写数据;当前按自然15分钟最新组,缺源等待,由通用脚本调度执行,无专属cron编辑器。
脚本计划:主平台scripts模块使用APScheduler的interval/cron计划。
数据任务:database模块导入导出后台任务,使用线程池,与APScheduler脚本计划不同。
运行记录保留:script_run_retention_hours与script_run_retention_count,后者为每项目数量上限。
MemRelay:当前规则、事实、检查点和密码库工具入口;普通记忆不存凭据。
内网PyPI:pypiserver离线wheel服务及平台管理模块。
FULLTEXT索引、缓存TTL等不是目前已确认的项目需求,不能由旧术语表推导待办。
@@ -0,0 +1,62 @@
---
title: Metrix 主体范围内的排障知识
type: curated
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/development/metrix-主体范围内的排障知识
stable_id: 1e1b9a7e-5897-4c82-b267-279a8c54b150
scope: project
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
workspace_type: development
usage_profile_id: null
preference_context: development
document_type: troubleshooting
revision: 4
source_memory_ids: []
source_checkpoint_ids: []
source_file_ids: []
source_git_commit: e660bc7bb4fc5ccda47decb4d514874a148ed9b2
source_git_commits:
- e660bc7bb4fc5ccda47decb4d514874a148ed9b2
source_agent_sync_ids: []
model_connection: Sub2API
model_name: manual
source_count: 29
source_revisions: {}
source_dispositions:
processed: 29
unchanged: 0
unsupported: 0
skipped: 0
cited_source_ids: []
job_cited_source_ids: []
conflicts: []
supersedes: []
preferences: []
source_cursor: 162
source_hash: e2fcea7c8a9e0df7a91925fb2a9beabd922058868310effc908f95df2d78b218
prompt_version: 2026-08-12.3
schema_version: '3'
curation_job_id: null
created_at: '2026-09-23T15:09:34.494392+00:00'
updated_at: '2026-10-08T08:07:58.156969+00:00'
tags:
- curated
- manual
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
---
# Metrix 主体排障知识
当前范围server/web,不读取或操作暂停的plugins。主体收敛3dc801a,排障按实际代码和复现,不从历史列表推导新需求。
- dev.py只检查根.venv和web Vite、只启动backend/web;不需要子模块初始化或插件依赖。旧--without-capacity-report选项和插件探针/端口特判已删除。
- Python环境文件存在不代表解释器有效,检查pyvenv.cfg基础路径;当前根Python3.13.15环境可用,不重复维护server/.venv。
- FastAPI0.142.4 include_router包装使旧操作名映射遗漏;主体固定0.136.3,后续升级先验证迁移。前次85项全量是e77a28a历史结果,本轮启动器13项及主体启动验证通过。
- pytest显式basetemp父目录由conftest准备,默认Temp/tests/pytest。Playwright使用wrapper共用项目浏览器缓存Temp/cache/ms-playwright与结果Temp/tests/playwright。
- 浏览器模拟服务器时间和容器卷,不依赖真实后端;日常验证只覆盖主体。
- 非默认API端口需同步VITE_API_TARGET,dev.py已自动设置;只禁止API使用Web5173,其余端口确保空闲;Vite strictPort防止静默换号。
- 中断或失败须清理已启动树/组,POSIX父进程先退出也清理剩余组,超时强杀;本轮两主体服务退出和端口释放已实测。
- Git所有权冲突单命令safe.directory;日常主体同步避免递归操作子模块。沿用仓库换行设置执行diff--check。
- API拒绝查Web/Token来源、角色、系统设置api_enabled和require_web_session,不盲加core/config标志。
- Docker工作区路径需daemon可见,长exec检查底层socket超时;该容器/脚本能力属于主体,不是暂停插件开发。
旧插件数据库健康探针不再参与dev.py,相关资料仅历史。Shiki监听和有效测试入口已存在,无来源待办不作为故障。