create: InterferenceETL 已改为 Metrix 托管应用(interference-etl)
MemRelay-Operation: memory-save:etl-app-fact-20261106-1 MemRelay-Resource: 23bd2d0f-80bc-4ed3-98a6-e5c5b0d05610
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
title: InterferenceETL 已改为 Metrix 托管应用(interference-etl)
|
||||||
|
type: fact
|
||||||
|
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/interference-etl-已改为-metrix-托管应用-interference-etl
|
||||||
|
stable_id: 23bd2d0f-80bc-4ed3-98a6-e5c5b0d05610
|
||||||
|
scope: project
|
||||||
|
memory_type: fact
|
||||||
|
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
|
||||||
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
|
status: active
|
||||||
|
revision: 1
|
||||||
|
request_id: etl-app-fact-20261106-1
|
||||||
|
created_at: '2026-11-06T09:00:36.894783+00:00'
|
||||||
|
updated_at: '2026-11-06T09:00:36.894783+00:00'
|
||||||
|
tags:
|
||||||
|
- InterferenceETL
|
||||||
|
- app-hosting
|
||||||
|
- production
|
||||||
|
---
|
||||||
|
|
||||||
|
- 仓库 plugins/InterferenceETL(独立仓库 https://git.asio.asia/Metrix/InterferenceETL.git),分支 feat/metrix-app,提交 96dd78b,未合并 main。Metrix 主仓库里 plugins/InterferenceETL 子模块指针显示已修改,未提交。
|
||||||
|
- 应用模式:etl_app 包,FastAPI + NiceGUI 4.0.0 管理页 /admin(仅 Metrix 管理员,X-Metrix-App-Role=admin),APScheduler 在同一容器内定时,每次运行是容器内子进程 python -m etl_app.worker,单实例互斥、超时终止。设置 /data/settings.json(0600,密码不回显),运行记录 /data/runs.db,日志 /data/logs,输出 /data/output。
|
||||||
|
- 打包:python scripts/package_metrix.py → dist/metrix/interference-etl-<__version__>-<hash>.zip(deploy/Dockerfile,requirements-app.txt,端口 8080)。
|
||||||
|
- 生产:slug interference-etl,容器 metrix-app-interference-etl-web,镜像 interference-etl:1.0.0-96dd78b,访问 http://188.5.127.115:18271/apps/interference-etl/admin。配置为 Metrix 存储 stg_4d9a910d72 + Metrix 数据库连接 db_5FvmP2uKiA,定时每 2 分钟已启用。
|
||||||
|
- 部署/更新脚本:Temp/prod/deploy_etl.py <zip>(存在则 update)。容器内改设置:docker exec 调 http://127.0.0.1:8080/api/settings,带 X-Metrix-Proxy-Token=$METRIX_APP_PROXY_TOKEN 与 X-Metrix-App-Role: admin(见 Temp/prod/etl-configure.sh、etl-run.sh)。
|
||||||
|
- 旧「脚本管理」项目 id 2 的定时 id 1 AutoRun(120s)已停用,项目与文件保留,可随时重新启用。
|
||||||
Reference in New Issue
Block a user