Files
MemRelay/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/InterferenceETL 已改为 Metrix 托管应用(interference-etl).md
T
memrelay 9526d7e06c update: InterferenceETL 已改为 Metrix 托管应用(interference-etl)
MemRelay-Operation: memory-save:etl-app-fact-20261106-2
MemRelay-Resource: 23bd2d0f-80bc-4ed3-98a6-e5c5b0d05610
2026-11-06 17:47:08 +08:00

28 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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: 2
request_id: etl-app-fact-20261106-2
created_at: '2026-11-06T09:00:36.894783+00:00'
updated_at: '2026-11-06T09:47:05.210321+00:00'
tags:
- InterferenceETL
- app-hosting
- production
---
- 仓库 plugins/InterferenceETL(独立仓库 https://git.asio.asia/Metrix/InterferenceETL.git),分支 feat/metrix-app,最新提交 b487a54,未合并 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-b487a54,访问 http://188.5.127.115:18271/apps/interference-etl/admin,定时每 2 分钟已启用。
- 当前配置(2026-11-06 17:41 起):文件来源 SFTP 188.5.127.115:15022 用户 jmomcuser1(与 Metrix 存储 stg_4d9a910d72「日常FTP服务器」同一账号,密码从该存储连接解密写入,长度 22;用户给的备用密码和密码库 188.5.127.114 条目的密码都认证失败);数据库 MySQL 直连 192.127.115.101:3306(服务器内网 IP,ShareMySQL 发布的 3306),root + ShareMySQL 容器 MYSQL_ROOT_PASSWORD,库 interference_etl 表 interference_hourly_summary。从 ETL 容器访问 188.5.127.115:3306、172.24.0.1、172.27.0.1 也都能连。
- sftpgo 可能有失败登录封禁,不要拿不确定的密码反复试 jmomcuser1。
- 部署/更新脚本:Temp/prod/deploy_etl.py <zip>(存在则 update,/data 卷保留配置)。容器内改设置: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-switch.sh、etl_switch_inside.py、etl-verify.sh)。
- 旧「脚本管理」项目 id 2 的定时 id 1 AutoRun(120s)已停用,项目与文件保留,可随时重新启用。