Go to file
youfak b8f5104167
Some checks are pending
ci / test (ubuntu-latest) (push) Waiting to run
ci / test (windows-latest) (push) Waiting to run
ci / race (push) Waiting to run
ci / integration (push) Waiting to run
docs: record provider lifecycle delivery
2026-07-30 19:47:10 +08:00
.github/workflows feat: add controller startup bootstrap 2026-07-30 11:38:33 +08:00
api feat: add authoritative worker runtime capacity 2026-07-30 15:46:18 +08:00
cmd/proxy-controller feat: run provider lifecycle in controller 2026-07-30 19:47:02 +08:00
configs feat: add Redis provider coordination 2026-07-30 14:15:48 +08:00
deploy feat: run provider lifecycle in controller 2026-07-30 19:47:02 +08:00
diagrams feat: add ephemeral proxy activity pool 2026-07-29 12:51:18 +08:00
docs docs: record provider lifecycle delivery 2026-07-30 19:47:10 +08:00
examples/config feat: add Redis provider coordination 2026-07-30 14:15:48 +08:00
internal feat: run provider lifecycle in controller 2026-07-30 19:47:02 +08:00
scripts feat: add Redis provider coordination 2026-07-30 14:15:48 +08:00
.gitignore feat: add controller startup bootstrap 2026-07-30 11:38:33 +08:00
CONTEXT.md feat: add ephemeral proxy activity pool 2026-07-29 12:51:18 +08:00
findings.md test: isolate postgres integration fixture 2026-07-29 21:53:33 +08:00
go.mod feat: add controller metrics probes 2026-07-30 12:30:42 +08:00
go.sum feat: add controller metrics probes 2026-07-30 12:30:42 +08:00
progress.md docs: record worker runtime capacity delivery 2026-07-30 15:46:27 +08:00
README.md docs: record provider lifecycle delivery 2026-07-30 19:47:10 +08:00
task_plan.md docs: record worker runtime capacity delivery 2026-07-30 15:46:27 +08:00
对话内容.md docs: define proxy pool architecture from full conversation 2026-07-28 18:08:59 +08:00

Proxy Pool

面向多供应商代理资源的集中管理与高并发转发平台。系统同时提供:

  • Gateway:系统选择上游代理并代转发 HTTP 与 HTTPS CONNECT。
  • Distribution API:把真实代理一次性、独占地发放给调用方。
  • Admin API:查询、启停、切换和配置重载。
  • Controller / Checker:管理供应商获取、健康、容量、状态与数据面快照。

当前仓库交付的是从 对话内容.md 全量重建的设计基线、机器契约、 项目骨架和关键并发领域实现。100,000 QPS 是集群设计目标,尚需在目标 网络和代理规模下完成压测证明。

快速导航

本地验证

go mod tidy
go test ./...
go vet ./...
go build ./...

Windows PowerShell 可运行:

./scripts/verify.ps1

竞态检测需要启用 CGO 并提供可用的 C 编译器CI 的 Linux race job 负责 执行该质量门禁。

不变量

  1. Gateway 热路径不访问 PostgreSQL、Redis 或 Provider API。
  2. Proxy 容量使用 Reserved -> Active 原子转换,禁止超卖。
  3. Distribution 成功时原子执行 AVAILABLE -> EXTRACTED,不提供 Lease、 Release 或 Renewal。
  4. pool.maxSize 是当前未提取库存硬上限;fetch.maxTotal 是 Redis generation 内的累计获取停止阈值。
  5. CONNECT 向客户端提交 200 后不透明重放。
  6. 公开监听必须有认证或 CIDR 访问保护。