Files
MemRelay/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/Checkpoint 2026-11-14 18-18-38 UTC [a3edf39e37].md
T
memrelay 71649ae36b create: Checkpoint 2026-11-14 18:18:38 UTC [a3edf39e37]
MemRelay-Operation: checkpoint-save:ckpt-proxy-pool-20261115
MemRelay-Resource: 7203bbda-7333-468a-8389-25f5bfec39c4
2026-11-15 02:18:42 +08:00

43 lines
2.0 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: Checkpoint 2026-11-14 18:18:38 UTC [a3edf39e37]
type: checkpoint
permalink: main/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/checkpoint-2026-11-14-18-18-38-utc-a3edf39e37
stable_id: 7203bbda-7333-468a-8389-25f5bfec39c4
scope: project
memory_type: checkpoint
project_id: f5708b07-f0ea-42a4-b4ed-0e5443990ff9
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: ckpt-proxy-pool-20261115
created_at: '2026-11-14T18:18:38.406295+00:00'
updated_at: '2026-11-14T18:18:38.406295+00:00'
tags:
- proxy
- pool
- autostudy
---
## 完成
自建代理池:ProxyHub 为首个上游,Collector 可扩展;每 5 分钟采集中国节点,连通且延迟 <3s 才可用。使用失败立即标失效且不再选;池空则直连。账号可设 scheme=pool(界面「自动」),后台单个/批量,均匀分配。管理侧栏新增「代理」页。
## 关键实现
- 迁移 0011:accounts.use_proxy_pool、proxy_nodes、proxy_pool_sync
- collectors.ProxyHubCollector + register()
- proxy_pool:probe、acquire/mark_failed/release、后台线程
- 登录/刷新/课程同步/自动学习遇代理失败会切换
- GET/POST /api/admin/proxies;用户和管理代理类型增加「自动」
## 验证
69 项 pytest 通过;npm run build 成功。首页选「自动」保存后 API scheme=pool。管理「代理」页列出中国 HTTP 节点,实测可用 1(222.129.142.219:9000,1511ms)、失效 79、待检测 220。用户列表代理列显示「自动」。已提交推送 ce2d6e0。
## 下一步
可再加其他采集上游。当前每轮最多检测 80 个,待检测会在后续周期消化。
## 给下个会话
- 服务 127.0.0.1:8000,EUNIV_DB_PATH=data/euniv.db,EUNIV_SECRET_KEY=dev-local-key
- 工号 6650000146 当前已设为自动代理(scheme=pool)
- 不要把 MD5 密钥写回代码;GetEncryptRequest 必须发字符串 body
- 产品文案不写聊天记录/开发说明
- 失效代理不会在后续检测中复活,新 IP 仍会检测
- 新增上游:实现 Collector 并 register()