仓库拆分:本仓只保留 cache 插件源码,core/gateway/其他插件经 submodule 引入

- 从本仓移除 ipass-core / plugin-domain / plugin-llm / plugin-apix / gateway / vendor/ngx-rust(这些属主项目 ipass/ipass)
- 添加 git submodule deps/ipass -> http://192.168.1.18:13300/ipass/ipass(提供 core/gateway/ngx-rust/其他插件用于编译 cache 插件)
- rust/Cargo.toml workspace 仅含 plugin-cache,依赖经 ../deps/ipass/rust/... 解析
- 移除根 tests/run.sh(主项目通用回归入口,非 cache 专用)
- 修复 .gitignore:所有 tests/cache/.run-* 运行时目录均不入库(此前 .run-auth/.run-cap 被误提交,已解除跟踪)
- 新增/更新 AGENTS.md 与 docs/plugins.md:明确本仓只含 cache 插件、core 从主项目取、submodule 升级方式、构建/接线说明
This commit is contained in:
ssw committed 2026-09-21 11:05:45 +08:00
1 parent 43718bd0c4
commit 0464971c5c
205 files changed
+164 -27456

No files matched your search

-131
View File
@@ -1,131 +0,0 @@
# ============================================================================
# cache-common.conf —— 各生态 cache location 共用的缓存/代理指令
#
# 由 conf/cache-routes.conf 在每个 location 内 `include`。
# **每个 location 自己指定** `proxy_cache <zone>`(各生态分库),本文件只放公共项。
#
# ---------------------------------------------------------------------------
# 与「静态上游版」相比的三处关键变化(配合 plugin-cache 的变量层)
# ---------------------------------------------------------------------------
#
# 1. `proxy_pass` 由字面量改为变量 `$cache_target`。上游地址与凭据因此来自
# 共享内存(`cx:<route>`,由管理台写),**改上游不用改 conf、不用 reload**。
# 代价:变量式 proxy_pass 不推导 Host、不追加 query —— 两者都由模块算好,
# 所以这里必须显式 `proxy_set_header Host $cache_host`。
#
# 2. `proxy_cache_key` 不再用 `$scheme$proxy_host$request_uri`(变量式下
# `$proxy_host` 不可靠),改用模块给的 `$cache_key`,并**并入方法 +
# Accept**(下面的注释详述为什么这是正确性问题,不是调优)。
#
# 3. 出站鉴权头改成三段式(`proxy_pass_request_headers on` + 抹掉三个
# 网关 Key 携带位 + 用 `$cache_auth` 下发)——见文件下半部分。
#
# ⚠️ 本文件**不得**使用 rewrite 模块的 `set` / `if`;生态判定由 plugin-cache
# 直读 `r->uri` 首段完成,不需要 `set $cache_ecosystem`。
# (`return` / `rewrite` 本身可用:本机构建与 ipass 生产都带 --with-pcre,
# rewrite 模块在编。它们只在 cache-routes.conf 里用。)
# ============================================================================
# ---------------------------------------------------------------------------
# 缓存键
# ---------------------------------------------------------------------------
#
# `$cache_key` = `<route>:<完整 URI + query>`,**不含任何下游凭据** —— 缓存因此是
# 「全站共享」的:同一个 go module / npm 包被 N 个账号拉,只回源一次。
# 这正是制品缓存的价值所在;鉴权在 access 层(谁能读),数据在共享层复用。
# 代价:任一有效 Key 都能命中别人拉过的制品 —— 对公开 registry 无碍,
# 若某路由指向**私有**上游,请理解这一点再启用。
#
# ★ query 必须进键(由模块的 `$cache_key` 负责,本行不要再自己拼 `$args`):
# npm 的 `?write=true`、docker 的 `?ns=`、go 的 `?go-get=1`、cargo 的
# `?archive=tar.gz` 都靠 query 区分实体。变量式 `proxy_pass` 下 `$uri`
# **不含** query,只按 `$uri` 做键会把 `/x?a` 与 `/x?b` 当成同一个资源,
# 把错的制品发给客户端(且第二次完全不回源,很难察觉)。
#
# ★ 为什么要并入 `$request_method` 与 `$http_accept`(这是正确性,不是调优):
#
# · `$request_method`:Docker 客户端对同一 URL 先 `HEAD` 看清单存不存在、
# 再 `GET` 取清单(registry 协议如此)。若两者共用一个键,一次 HEAD 的
# **空体**响应会被缓存下来并回给随后的 GET,客户端拿到 0 字节清单直接失败。
#
# · `$http_accept`:nginx 的 proxy_cache **不实现 Vary**(只能靠
# proxy_ignore_headers 把 Vary 忽略掉,无法参与分档)。而上游同一 URL
# 会因为 Accept 返回**不同实体**:
# - npm:`application/vnd.npm.install-v1+json` → 精简元数据,
# 缺省 → 完整元数据;
# - PyPI simple:`application/vnd.pypi.simple.v1+json` → JSON,
# `text/html` → HTML;
# - Docker:清单 v2 / OCI / v1 的 mediaType 由 Accept 偏好决定。
# 不并入 Accept 就会出现「发给 A 的实体被回给 B」的串档。代价是每个
# Accept 变体一个桶(现代客户端取值收敛,实际只多一个桶)。
#
# 注:刻意**不**再带 `$scheme`/`$proxy_host`:同一份制品无论客户端走 http
# 还是 https、走哪个域名进来,上游都是同一个,共享一份缓存更省盘也更省带宽。
proxy_cache_key $cache_key$request_method$http_accept;
# 只缓存完整 GET/HEAD(200/301/308);404 短缓存;206(range)/401 等不缓存,避免错片
proxy_cache_methods GET HEAD;
proxy_cache_valid 200 301 308 1d;
proxy_cache_valid 404 1m;
# 上游抖动时用陈旧副本兜底;并发同键只回源一次(防击穿)
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
proxy_cache_lock_age 10s;
proxy_cache_lock_timeout 30s;
# 带 If-None-Match / If-Modified-Since 回源校验,省带宽
proxy_cache_revalidate on;
# 加速缓存:不被上游 no-cache/Set-Cookie/Vary 拦下(镜像型缓存的标准取舍)
# ⚠️ Vary 被忽略是**必须**的——见上面缓存键的说明,我们已用 Accept 显式分档;
# 留着 Vary 反而会让 nginx 拒绝缓存这些响应。
proxy_ignore_headers Cache-Control Expires Set-Cookie Vary;
proxy_http_version 1.1;
# ---------------------------------------------------------------------------
# 出站请求头(镜像型:默认透传,但抹掉「本网关自己的 Key」)
# ---------------------------------------------------------------------------
#
# 与 LLM/API 代理的 allowlist 策略**刻意不同**:那些是无状态 API,客户端
# 头没有语义;而镜像必须原样带上客户端的 `Accept` / `Range` /
# `If-None-Match` / `User-Agent`,否则 docker 的 mediaType 协商、range 取
# 大 blob、条件请求全部失效。所以这里保持 `on`(nginx 默认),只在三个
# 「网关 Key 的携带位」上显式抹空。
#
# 为什么必须抹:`sk_` 是客户端访问**本网关**的身份(auth::downstream_key 认
# Authorization / x-api-key / api-key 三处)。原样透传给上游 = 把网关钥匙
# 递给上游厂商,对方可拿它反调本网关的其它路由刷额度。ipass 的 LLM 路径
# 记过同一个坑(宽松厂商把这缺陷掩盖成 200,换严格厂商才暴露成 401)。
proxy_pass_request_headers on;
proxy_set_header x-api-key "";
proxy_set_header api-key "";
# 变量形式 proxy_pass 不会推导 Host,必须显式设(上游多为 Cloudflare 前端,
# Host 不符会被直接拒)
proxy_set_header Host $cache_host;
# Authorization 三段式(由模块里的 `$cache_auth` 实现,语义见其文档):
# 配了上游凭据 → 下发配置值(管理员写全 `Bearer xxx` / `Basic yyy`)
# 没配 → 透传客户端值(Docker Hub 的短期 Bearer token 走这条)
# 客户端那把恰好是下行 sk_ → 丢弃
proxy_set_header Authorization $cache_auth;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
# registry 大 blob / 慢索引:放宽超时
proxy_read_timeout 300s;
proxy_send_timeout 300s;
# 变量式/直连上游为 HTTPS 时开 SNI;证书校验此阶段关闭(镜像多为公开源,
# 且目标主机来自管理台配置而非请求。要严格校验需另配 proxy_ssl_trusted_certificate)
proxy_ssl_server_name on;
proxy_ssl_protocols TLSv1.2 TLSv1.3;
proxy_ssl_verify off;
# 观测:每次响应带回缓存命中状态(ipass plugin-cache 亦从同一变量记账)
add_header X-Cache-Status $upstream_cache_status always;
add_header X-Cache-Eco $cache_eco always;
-177
View File
@@ -1,177 +0,0 @@
# ============================================================================
# cache-routes.conf —— 制品缓存网关的「server 内容」(在 server { } 里 include)
#
# 为什么单独成一个文件:这份路由要**两处复用**——
# * 明文入口 conf/server.cache.conf(本机 e2e / 内网直连)
# * TLS 入口 conf/tls/*.conf(对外,Docker 镜像加速必须走 https)
# 路由、鉴权开关、探针、管理台只写一份,两个入口不会漂。
#
# 路由约定:/<前缀>/<path> => <该 route 配置的上游>/<path>
# /go/ Go module proxy → 默认 proxy.golang.org
# /cargo/ crates.io 稀疏索引 → 默认 index.crates.io
# /cargo-dl/ .crate 包本体 → 默认 static.crates.io
# /pypi/ PyPI 简单索引/JSON → 默认 pypi.org
# /pypi-files/ wheel/sdist 包文件 → 默认 files.pythonhosted.org
# /npm/ npm registry → 默认 registry.npmjs.org
# /maven/ Maven Central → 默认 repo1.maven.org/maven2
# /v2/ Docker Registry v2 → 默认 registry-1.docker.io
#
# ⚠️ 上游地址**不写在本文件里**:全部来自 plugin-cache 的上游表(管理台
# 「制品缓存」页,落盘 data/cache-upstreams.json + 写穿共享内存)。
# 本文件只出现变量名。改上游 = 改管理台,不需要动 conf、不需要 reload。
#
# ⚠️ 每个带 `ipass_cache on` 的 location 都会在 access 阶段做闸门:
# 1) 该路由没配上游 → 503(不会让请求走到空 $cache_target 变成 500)
# 2) 统一 sk_ Key 鉴权(与 LLM / API 代理同一把)→ 401
# 3) 每分钟/每日配额 → 429
# 然后数据面才交给 nginx 原生 proxy_cache。
# ============================================================================
# ---------------- 管理台(多页静态资源,挂在 /admin/ 下)----------------
# 每页 head 里有 <base href="/admin/">,所以资源与 /api/ 都是绝对路径。
#
# **不发版不重启也能修好页面**:所有 HTML / CSS / JS 都加
# `Cache-Control: no-store`(expires -1 + add_header)。否则用户浏览器会
# 一直用发版前的旧 JS —— 典型表现是「后端加了字段,页面上看不到」。
#
# ⚠️ alias 刻意写**相对**路径 `www/`:nginx 把 root/alias 的相对路径解析到
# **prefix** 而不是 conf/,所以生产(prefix=/usr/local/nginx)得到
# /usr/local/nginx/www/,本地回归(prefix=tests/.../.run-prod)得到
# 测试自己的 www/。写死绝对路径则本机必 404。
location = / {
return 302 /admin;
}
location = /admin {
default_type text/html;
alias www/cache.html;
expires -1;
add_header Cache-Control "no-store" always;
}
# `/admin/`(末尾斜杠、后面无字符)不能直接 alias 到目录:nginx 会把
# index 拼成 `cache.htmlindex.html` 而 500。内部重定向到具体文件最干净。
location = /admin/ {
rewrite ^ /admin/cache.html last;
}
location /admin/ {
alias www/;
expires -1;
add_header Cache-Control "no-store" always;
}
# ---------------- API:管理态(登录会话)+ 账号态(sk_)----------------
# 由 plugin-cache 认领 /api/admin/cache* 与 /api/v1/cache*;
# 其余 /api/* 交给同一 gateway 里的其它插件(llm/apix/domain),互不干扰。
location /api/ {
ipass_api on;
}
# ---------------- 上游连通性探针(管理台「测试」按钮)----------------
# /api/admin/cache/test 校验 route 后由模块内部重定向到这里。
# 刻意**复用** $cache_target / $cache_host / $cache_auth —— 与真实转发
# 走同一套「拼上游 URL + 换凭据」逻辑,所以「测试通过」才等价于
# 「真实请求能到上游并带上凭据」;另写一套探针代码必然漂移。
#
# 为什么这里不写 `ipass_cache on`:内部重定向会重跑 access 阶段,而管理台
# 带的是**登录 Cookie、不是 sk_**,再鉴一次会把自己 401 掉。鉴权已在
# /api/admin/cache/test 那一跳用 Admin 守卫做过,这里是 internal,外部进不来。
#
# proxy_cache off:探针是「验连通」,不该用一次探测污染 1d 的制品缓存。
location /_cache_test/ {
internal;
proxy_cache off;
proxy_pass $cache_target;
proxy_http_version 1.1;
# 探针只验「拼目标 + 换凭据 + 到达上游」,请求头与请求体都不需要转发:
# * 方法由模块钉成 GET(见 plugin-cache api.rs 的 h_admin_test);
# * body 必须 off —— 管理台是用 POST 触发的,不 off 的话那 2 字节 `{}`
# 会连 Content-Length 一起发出去,上游等一个 GET 的 body、
# 或 keepalive 上残留半截请求体,表现为「测试时好时坏」。
proxy_pass_request_headers off;
proxy_pass_request_body off;
proxy_set_header Host $cache_host;
proxy_set_header Authorization $cache_auth;
proxy_set_header User-Agent $http_user_agent;
proxy_ssl_server_name on;
proxy_connect_timeout 5s;
proxy_send_timeout 15s;
proxy_read_timeout 15s;
}
# ---------------- Go module proxy ----------------
location /go/ {
ipass_cache on;
proxy_cache go;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- crates.io 稀疏索引 ----------------
location /cargo/ {
ipass_cache on;
proxy_cache cargo;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- .crate 包本体 ----------------
# ⚠️ crates.io 的 config.json 里 `dl` 字段给的是**绝对 URL**
# (https://static.crates.io/crates/...),cargo 默认直连上游域名、绕过本网关,
# 所以这个 location 只是**落点就绪**。要真正命中需二选一:
# (a) nginx 开 http_sub_module,用 sub_filter 把索引/`config.json` 里的
# 绝对 URL 改写成 https://<本网关>/cargo-dl;或
# (b) 网络层把 static.crates.io 指到本网关(内网 DNS + 证书)。
# 两者都归到 cargo 生态计数(plugin-cache 的 eco_of_route 已做映射)。
location /cargo-dl/ {
ipass_cache on;
proxy_cache cargo;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- PyPI 简单索引 / JSON ----------------
location /pypi/ {
ipass_cache on;
proxy_cache pypi;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- wheel/sdist 包文件 ----------------
# ⚠️ 与 /cargo-dl/ 同理:PyPI simple 页里的 href 是绝对 URL
# (https://files.pythonhosted.org/...),pip 默认直连,需 sub_filter 重写
# 或 DNS 指向才能命中本 location。归到 pypi 生态计数。
location /pypi-files/ {
ipass_cache on;
proxy_cache pypi;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- npm registry ----------------
location /npm/ {
ipass_cache on;
proxy_cache npm;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- Maven Central ----------------
location /maven/ {
ipass_cache on;
proxy_cache maven;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- Docker Registry v2 ----------------
# registry-mirrors 要求 https(见 conf/tls/),且**只适合公开镜像**:
# 缓存键不含用户身份,私有镜像会被串档(见 cache-common.conf 的说明)。
# 客户端先向 auth.docker.io 换短期 Bearer token 再带 Authorization 来拉,
# 该 token 由 cache-common.conf 的 $cache_auth 透传给上游(但网关自己的
# sk_ 会被剔除)。上游路径的 `/v2` 前缀由模块的 upstream_path_prefix 补回。
location /v2/ {
ipass_cache on;
proxy_cache docker;
proxy_pass $cache_target;
include cache-common.conf;
}
-99
View File
@@ -1,99 +0,0 @@
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/avif avif;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
font/woff woff;
font/woff2 woff2;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.apple.mpegurl m3u8;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/vnd.ms-excel xls;
application/vnd.ms-fontobject eot;
application/vnd.ms-powerpoint ppt;
application/vnd.oasis.opendocument.graphics odg;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation
pptx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx;
application/vnd.wap.wmlc wmlc;
application/wasm wasm;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/xspf+xml xspf;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}
-87
View File
@@ -1,87 +0,0 @@
# ============================================================================
# nginx.cache.conf —— 统一制品缓存网关 · 顶层配置
#
# vanilla nginx + ipass Rust 动态模块(plugin-cache)
#
# 本机回归:bash tests/cache/run.sh
# 生产部署:把本文件放到 nginx prefix 的 conf/ 下,同目录放
# server.cache.conf / cache-routes.conf / cache-common.conf /
# mime.types,启动即可;要对外 https 再加 conf/tls/*.conf。
#
# 数据面 = nginx 原生 proxy_cache(六生态各一个 zone,落本地盘);
# 管理面 = ipass plugin-cache(access 鉴权 + log 按生态记账 + 管理 API)。
#
# ⚠️ 上游地址/凭据**不在 conf 里**:全在 plugin-cache 的上游表
# (管理台「制品缓存」页 → data/cache-upstreams.json → 写穿共享内存)。
# conf 只出现 `$cache_*` 变量名,所以改上游不需要动 conf、不需要 reload。
#
# ⚠️ 因为 proxy_pass 是变量形式,`resolver` 是**必需**的:nginx 无法在配置
# 解析期把变量里的主机名解析成 IP,只能运行期查 DNS。缺 resolver 的表现是
# `/go/...` 一律 500(no resolver defined to resolve ...)。
#
# 本构建(build/build-nginx-ssl.sh)对齐 ipass 生产的 Dockerfile 参数:
# --with-pcre --with-http_ssl_module --with-http_realip_module
# 即 rewrite 模块与 SSL 都在编,所以本文件与 server.cache.conf /
# cache-routes.conf 里可以用 `return` / `rewrite` / `ssl_certificate`。
# ============================================================================
load_module /Users/rong/Desktop/cache/rust/target/debug/libipass_gateway.dylib;
worker_processes 1;
error_log /Users/rong/Desktop/cache/tests/cache/.run-auth/logs/error.log info;
pid /Users/rong/Desktop/cache/tests/cache/.run-auth/logs/nginx.pid;
# 初始管理员口令(不声明则会被 nginx 从环境中剥离)
env ADMIN_INIT_PASSWORD;
events {
worker_connections 4096;
}
http {
include mime.types;
default_type application/octet-stream; # 缺 Content-Type 时的兜底;
# API 响应由模块显式设 application/json
sendfile on;
keepalive_timeout 65;
# ========== 变量式上游的必需项 ==========
# proxy_pass $cache_target 里的主机名只能运行期解析(见文件头注释)。
# 两个国内解析器,30s 缓存;ipv6=off 避免拿到不可达的 AAAA 卡住连接。
resolver 223.5.5.5 119.29.29.29 valid=30s ipv6=off;
resolver_timeout 5s;
# ========== 可选 TLS(HTTPS)==========
# conf/tls/ 下放任意 *.conf(完整的 443/18098 server 块)即启用对应域名的
# HTTPS;目录为空或不存在时 include 空匹配,不影响启动。
# 模板见 conf/tls/cache.conf.example,说明见 conf/tls/README.md
include /Users/rong/Desktop/cache/tests/cache/.run-auth/conf/tls/*.conf;
# ========== ipass 内核:共享内存 + 数据目录 ==========
# 一张共享内存表承载:上游表(cx:)/ 命中计数(cache:)/ 管理会话 / 限流窗口。
# 上游表条目数 = 路由数(个位数),10m 绰绰有余。
ipass_state state 10m;
ipass_data_dir /Users/rong/Desktop/cache/tests/cache/.run-auth/data;
ipass_audit_dir /Users/rong/Desktop/cache/tests/cache/.run-auth/audit;
# ========== 六类生态缓存区(本地盘热层)==========
# 各生态独立 zone,互不串档、独立上限;use_temp_path=off 省一次改名。
# ⚠️ cargo / pypi 各有两个 route 共用同一个 zone(索引 + 包本体):
# 这是刻意的——同一门语言的流量记在一起才看得懂,而 zone 内靠
# $cache_key 的 route 前缀天然分档,不会串。
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-auth/cache/go levels=1:2 keys_zone=go:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-auth/cache/cargo levels=1:2 keys_zone=cargo:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-auth/cache/pypi levels=1:2 keys_zone=pypi:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-auth/cache/npm levels=1:2 keys_zone=npm:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-auth/cache/maven levels=1:2 keys_zone=maven:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-auth/cache/docker levels=1:2 keys_zone=docker:200m max_size=200g inactive=7d use_temp_path=off;
# 命中率日志(排障用;真实指标由 plugin-cache 的共享内存计数器提供)
log_format cache '$remote_addr [$time_local] "$request" $status '
'$body_bytes_sent cache=$upstream_cache_status eco=$cache_eco '
'uri=$uri rt=$request_time';
access_log /Users/rong/Desktop/cache/tests/cache/.run-auth/logs/cache.log cache;
include server.cache.conf;
}
-30
View File
@@ -1,30 +0,0 @@
# ============================================================================
# server.cache.conf —— 统一制品缓存 server(明文入口)
#
# 这是**内网 / 本机 e2e** 用的明文入口。对外的 https 入口在 conf/tls/*.conf
# (模板见 conf/tls/cache.conf.example)——两者 include 同一份 cache-routes.conf,
# 所以路由只此一份、不会漂。
#
# 为什么要拆两个入口:Docker 的 `registry-mirrors` 只接受 https(明文地址会
# 被 daemon 当成 insecure registry 拒绝),而本机自测/内网互调又不想折腾证书。
#
# 为什么本 server 不写 listen ... ssl:证书与域名属于部署环境(见 conf/tls/),
# 写死在这里会让「同一份 conf 换域名」变成改代码。
# ============================================================================
server {
listen 54166;
server_name _;
# registry 大 blob 直通,不设体积上限(0 = 不限制)
client_max_body_size 0;
# 请求体都是小 JSON / 空体,调大缓冲区让它留在内存里,避免刷临时文件
client_body_buffer_size 1m;
# 管理台 `location = /` 会 302 到 /admin。不关掉的话 nginx 默认写
# 绝对 URL + 实际 listen 端口,反代/端口映射后会把浏览器踢出链路。
absolute_redirect off;
port_in_redirect off;
include cache-routes.conf;
}
-1
View File
@@ -1 +0,0 @@
{"items":{"cargo":{"base":"http://127.0.0.1:54167","key":"","mode":"proxy","name":"cargo 测试上游(无凭据)","desc":"假上游","enabled":true,"note":"","created_at":1757500000,"updated_at":1757500000},"go":{"base":"http://127.0.0.1:54167","key":"Bearer upstream-secret-token","mode":"proxy","name":"Go 测试上游","desc":"假上游","enabled":true,"note":"","created_at":1757500000,"updated_at":1757500000},"npm":{"base":"http://127.0.0.1:54167","key":"","mode":"proxy","name":"e2e-runtime","desc":"","enabled":true,"note":"","created_at":1789909388,"updated_at":1789909388}}}
-1
View File
@@ -1 +0,0 @@
{"version":1,"saved_at":1789909390,"saved_at_text":"2026-09-20 21:03:10","keys":{}}
-1
View File
@@ -1 +0,0 @@
{"admin":{"username":"admin","display_name":"","role":"admin","salt":"5a1b2c3d4e5f60718293a4b5c6d7e8f9","pwd_hash":"062b45d8f3cbef3d30464859355401bb37193868dc42eb941de86855416ab5e8","api_key":"sk_admin_0000000000000000000000000000000000000000000000ab","allowed_models":[],"llm_rpm":60,"llm_daily":0,"temp_grant_until":0,"created_at":1757500000},"alice":{"username":"alice","display_name":"爱丽丝","role":"user","salt":"00112233445566778899aabbccddeeff","pwd_hash":"00","api_key":"sk_alice_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","allowed_models":["openai"],"llm_rpm":60,"llm_daily":0,"temp_grant_until":0,"created_at":1757500000},"bob":{"username":"bob","display_name":"","role":"user","salt":"ffeeddccbbaa99887766554433221100","pwd_hash":"00","api_key":"sk_bob_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb","allowed_models":[],"llm_rpm":60,"llm_daily":0,"temp_grant_until":0,"created_at":1757500000},"carol":{"username":"carol","display_name":"","role":"user","salt":"112233445566778899aabbccddeeff00","pwd_hash":"00","api_key":"sk_carol_cccccccccccccccccccccccccccccccccccccccccccccc","allowed_models":[],"llm_rpm":2,"llm_daily":0,"temp_grant_until":0,"created_at":1757500000},"dave":{"username":"dave","display_name":"","role":"user","salt":"aabbccddeeff00112233445566778899","pwd_hash":"00","api_key":"sk_dave_dddddddddddddddddddddddddddddddddddddddddddddddd","allowed_models":[],"llm_rpm":0,"llm_daily":2,"temp_grant_until":0,"created_at":1757500000}}
-189
View File
@@ -1,189 +0,0 @@
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 78 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 78 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=MISS eco=go uri=/go/@v/list rt=0.028
127.0.0.1 [20/Sep/2026:16:06:35 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=MISS eco=go uri=/go/@v/list rt=0.030
127.0.0.1 [20/Sep/2026:16:06:36 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=MISS eco=go uri=/go/@v/list rt=0.021
127.0.0.1 [20/Sep/2026:16:06:36 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:06:38 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:06:38 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=MISS eco=cargo uri=/cargo/config.json rt=0.029
127.0.0.1 [20/Sep/2026:16:06:39 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:06:39 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:06:39 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 99 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /api/v1/cache/stats HTTP/1.1" 200 694 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:20:33 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=MISS eco=go uri=/go/@v/list rt=0.019
127.0.0.1 [20/Sep/2026:16:20:36 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:20:36 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=HIT eco=cargo uri=/cargo/config.json rt=0.000
127.0.0.1 [20/Sep/2026:16:20:37 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:20:37 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:20:37 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 99 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET /api/v1/cache/stats HTTP/1.1" 200 694 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=MISS eco=go uri=/go/@v/list rt=0.022
127.0.0.1 [20/Sep/2026:16:21:23 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=MISS eco=go uri=/go/@v/list rt=0.024
127.0.0.1 [20/Sep/2026:16:21:24 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=MISS eco=go uri=/go/@v/list rt=0.014
127.0.0.1 [20/Sep/2026:16:21:24 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=MISS eco=go uri=/go/@v/list rt=0.015
127.0.0.1 [20/Sep/2026:16:21:26 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:21:26 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=MISS eco=cargo uri=/cargo/config.json rt=0.016
127.0.0.1 [20/Sep/2026:16:21:27 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:21:27 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:21:27 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:24:10 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:24:10 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:24:10 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:16:24:10 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:24:10 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 99 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:24:10 +0800] "GET /api/v1/cache/stats HTTP/1.1" 200 694 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:24:10 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:24:10 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=MISS eco=go uri=/go/@v/list rt=0.082
127.0.0.1 [20/Sep/2026:16:24:11 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=MISS eco=go uri=/go/@v/list rt=0.011
127.0.0.1 [20/Sep/2026:16:24:11 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=MISS eco=go uri=/go/@v/list rt=0.014
127.0.0.1 [20/Sep/2026:16:24:11 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=MISS eco=go uri=/go/@v/list rt=0.012
127.0.0.1 [20/Sep/2026:16:24:12 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:24:13 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=MISS eco=cargo uri=/cargo/config.json rt=0.016
127.0.0.1 [20/Sep/2026:16:24:13 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:24:13 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:24:13 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:24:14 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:16:24:14 +0800] "GET /api/admin/cache HTTP/1.1" 200 4804 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:24:14 +0800] "GET /api/admin/cache HTTP/1.1" 200 4804 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:24:14 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:24:14 +0800] "POST /api/admin/cache/save HTTP/1.1" 200 163 cache=- eco=- uri=/api/admin/cache/save rt=0.000
127.0.0.1 [20/Sep/2026:16:24:15 +0800] "GET /npm/foo HTTP/1.1" 200 13 cache=MISS eco=npm uri=/npm/foo rt=0.016
127.0.0.1 [20/Sep/2026:16:24:15 +0800] "GET /api/v1/cache HTTP/1.1" 200 1408 cache=- eco=- uri=/api/v1/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 99 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /api/v1/cache/stats HTTP/1.1" 200 694 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=MISS eco=go uri=/go/@v/list rt=0.021
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=MISS eco=go uri=/go/@v/list rt=0.027
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=MISS eco=go uri=/go/@v/list rt=0.016
127.0.0.1 [20/Sep/2026:16:29:24 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=MISS eco=go uri=/go/@v/list rt=0.016
127.0.0.1 [20/Sep/2026:16:29:27 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:29:28 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=MISS eco=cargo uri=/cargo/config.json rt=0.029
127.0.0.1 [20/Sep/2026:16:29:29 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:29:29 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:29:29 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:29:29 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:16:29:29 +0800] "GET /api/admin/cache HTTP/1.1" 200 4804 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:29:29 +0800] "GET /api/admin/cache HTTP/1.1" 200 4804 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:29:30 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:29:30 +0800] "POST /api/admin/cache/save HTTP/1.1" 200 163 cache=- eco=- uri=/api/admin/cache/save rt=0.000
127.0.0.1 [20/Sep/2026:16:29:31 +0800] "GET /npm/foo HTTP/1.1" 200 13 cache=MISS eco=npm uri=/npm/foo rt=0.030
127.0.0.1 [20/Sep/2026:16:29:31 +0800] "GET /api/v1/cache HTTP/1.1" 200 1408 cache=- eco=- uri=/api/v1/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 99 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /api/v1/cache/stats HTTP/1.1" 200 694 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=MISS eco=go uri=/go/@v/list rt=0.021
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=MISS eco=go uri=/go/@v/list rt=0.024
127.0.0.1 [20/Sep/2026:16:59:23 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=MISS eco=go uri=/go/@v/list rt=0.017
127.0.0.1 [20/Sep/2026:16:59:24 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=MISS eco=go uri=/go/@v/list rt=0.018
127.0.0.1 [20/Sep/2026:16:59:26 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:59:26 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=MISS eco=cargo uri=/cargo/config.json rt=0.017
127.0.0.1 [20/Sep/2026:16:59:27 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:59:27 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:59:27 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:16:59:27 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:16:59:27 +0800] "GET /api/admin/cache HTTP/1.1" 200 4804 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:59:27 +0800] "GET /api/admin/cache HTTP/1.1" 200 4804 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:16:59:28 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:16:59:28 +0800] "POST /api/admin/cache/save HTTP/1.1" 200 163 cache=- eco=- uri=/api/admin/cache/save rt=0.000
127.0.0.1 [20/Sep/2026:16:59:28 +0800] "GET /npm/foo HTTP/1.1" 200 13 cache=MISS eco=npm uri=/npm/foo rt=0.016
127.0.0.1 [20/Sep/2026:16:59:28 +0800] "GET /api/v1/cache HTTP/1.1" 200 1408 cache=- eco=- uri=/api/v1/cache rt=0.000
127.0.0.1 [20/Sep/2026:17:58:13 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:17:58:13 +0800] "GET /admin HTTP/1.1" 200 3256 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 99 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET /api/v1/cache/stats HTTP/1.1" 200 694 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=MISS eco=go uri=/go/@v/list rt=0.015
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=MISS eco=go uri=/go/@v/list rt=0.015
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=MISS eco=go uri=/go/@v/list rt=0.012
127.0.0.1 [20/Sep/2026:17:58:14 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=MISS eco=go uri=/go/@v/list rt=0.014
127.0.0.1 [20/Sep/2026:17:58:15 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:17:58:16 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=MISS eco=cargo uri=/cargo/config.json rt=0.016
127.0.0.1 [20/Sep/2026:17:58:16 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:17:58:16 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:17:58:16 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:17:58:16 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:17:58:16 +0800] "GET /api/admin/cache HTTP/1.1" 200 4804 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:17:58:16 +0800] "GET /api/admin/cache HTTP/1.1" 200 4804 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:17:58:17 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:17:58:17 +0800] "POST /api/admin/cache/save HTTP/1.1" 200 163 cache=- eco=- uri=/api/admin/cache/save rt=0.000
127.0.0.1 [20/Sep/2026:17:58:17 +0800] "GET /npm/foo HTTP/1.1" 200 13 cache=MISS eco=npm uri=/npm/foo rt=0.012
127.0.0.1 [20/Sep/2026:17:58:17 +0800] "GET /api/v1/cache HTTP/1.1" 200 1408 cache=- eco=- uri=/api/v1/cache rt=0.000
127.0.0.1 [20/Sep/2026:17:58:18 +0800] "POST /api/admin/cache/test?route=go HTTP/1.1" 200 10 cache=- eco=go uri=/_cache_test/go rt=0.012
127.0.0.1 [20/Sep/2026:18:29:07 +0800] "GET /admin HTTP/1.1" 200 5452 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:18:29:07 +0800] "GET /admin HTTP/1.1" 200 5452 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:18:29:07 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:18:29:07 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:07 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 99 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:18:29:07 +0800] "GET /api/v1/cache/stats HTTP/1.1" 200 694 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:18:29:07 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:18:29:08 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=MISS eco=go uri=/go/@v/list rt=0.229
127.0.0.1 [20/Sep/2026:18:29:08 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=MISS eco=go uri=/go/@v/list rt=0.521
127.0.0.1 [20/Sep/2026:18:29:08 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=MISS eco=go uri=/go/@v/list rt=0.543
127.0.0.1 [20/Sep/2026:18:29:08 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=MISS eco=go uri=/go/@v/list rt=0.024
127.0.0.1 [20/Sep/2026:18:29:10 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:18:29:10 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=MISS eco=cargo uri=/cargo/config.json rt=0.012
127.0.0.1 [20/Sep/2026:18:29:11 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:18:29:11 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:18:29:11 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:18:29:11 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:18:29:11 +0800] "GET /api/admin/cache HTTP/1.1" 200 7469 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:11 +0800] "GET /api/admin/cache HTTP/1.1" 200 7469 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:11 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:18:29:11 +0800] "POST /api/admin/cache/save HTTP/1.1" 200 163 cache=- eco=- uri=/api/admin/cache/save rt=0.000
127.0.0.1 [20/Sep/2026:18:29:12 +0800] "GET /npm/foo HTTP/1.1" 200 13 cache=MISS eco=npm uri=/npm/foo rt=0.010
127.0.0.1 [20/Sep/2026:18:29:12 +0800] "GET /api/v1/cache HTTP/1.1" 200 1408 cache=- eco=- uri=/api/v1/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:12 +0800] "POST /api/admin/cache/test?route=go HTTP/1.1" 200 10 cache=- eco=go uri=/_cache_test/go rt=0.011
127.0.0.1 [20/Sep/2026:21:03:03 +0800] "GET /admin HTTP/1.1" 200 6437 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:21:03:03 +0800] "GET /admin HTTP/1.1" 200 6437 cache=- eco=- uri=/admin rt=0.000
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET /api/admin/cache HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET /api/v1/cache/stats HTTP/1.1" 401 99 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET /api/v1/cache/stats HTTP/1.1" 200 694 cache=- eco=- uri=/api/v1/cache/stats rt=0.000
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET /go/@v/list HTTP/1.1" 200 90 cache=MISS eco=go uri=/go/@v/list rt=0.021
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET /go/@v/list HTTP/1.1" 200 47 cache=MISS eco=go uri=/go/@v/list rt=0.016
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=MISS eco=go uri=/go/@v/list rt=0.018
127.0.0.1 [20/Sep/2026:21:03:04 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=MISS eco=go uri=/go/@v/list rt=0.017
127.0.0.1 [20/Sep/2026:21:03:06 +0800] "GET /go/@v/list?x=1 HTTP/1.1" 200 21 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:21:03:06 +0800] "GET /cargo/config.json HTTP/1.1" 200 21 cache=MISS eco=cargo uri=/cargo/config.json rt=0.020
127.0.0.1 [20/Sep/2026:21:03:07 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:21:03:07 +0800] "GET /go/@v/list HTTP/1.1" 200 17 cache=HIT eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:21:03:07 +0800] "GET /go/@v/list HTTP/1.1" 429 139 cache=- eco=go uri=/go/@v/list rt=0.000
127.0.0.1 [20/Sep/2026:21:03:07 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:21:03:07 +0800] "GET /api/admin/cache HTTP/1.1" 200 7469 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:03:07 +0800] "GET /api/admin/cache HTTP/1.1" 200 7469 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:03:08 +0800] "GET /npm/foo HTTP/1.1" 500 116 cache=- eco=- uri=/npm/foo rt=0.000
127.0.0.1 [20/Sep/2026:21:03:08 +0800] "POST /api/admin/cache/save HTTP/1.1" 200 163 cache=- eco=- uri=/api/admin/cache/save rt=0.000
127.0.0.1 [20/Sep/2026:21:03:08 +0800] "GET /npm/foo HTTP/1.1" 200 13 cache=MISS eco=npm uri=/npm/foo rt=0.018
127.0.0.1 [20/Sep/2026:21:03:08 +0800] "GET /api/v1/cache HTTP/1.1" 200 1408 cache=- eco=- uri=/api/v1/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:03:09 +0800] "POST /api/admin/cache/test?route=go HTTP/1.1" 200 10 cache=- eco=go uri=/_cache_test/go rt=0.016
-5
View File
@@ -1,5 +0,0 @@
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_127.0.0.1 FALSE / FALSE 1789938187 ipass_admin_session a0d282debcb9f9745193c3a7bbe7cc3eb1e00b30893e1442e2cbc35d0064dad2
-684
View File
@@ -1,684 +0,0 @@
2026/09/20 16:03:16 [emerg] 28713#0: open() "/usr/local/nginx/logs/cache.log" failed (2: No such file or directory)
2026/09/20 16:03:18 [emerg] 28722#0: open() "/usr/local/nginx/logs/cache.log" failed (2: No such file or directory)
2026/09/20 16:03:18 [emerg] 28723#0: open() "/usr/local/nginx/logs/cache.log" failed (2: No such file or directory)
2026/09/20 16:03:23 [notice] 28825#0: signal process started
2026/09/20 16:03:23 [error] 28825#0: invalid PID number "" in "/Users/rong/Desktop/cache/tests/cache/.run-auth/logs/nginx.pid"
2026/09/20 16:04:19 [emerg] 28984#0: invalid number of arguments in "listen" directive in /Users/rong/Desktop/cache/tests/cache/.run-auth/conf/server.cache.conf:16
2026/09/20 16:04:20 [emerg] 28992#0: invalid number of arguments in "listen" directive in /Users/rong/Desktop/cache/tests/cache/.run-auth/conf/server.cache.conf:16
2026/09/20 16:04:20 [emerg] 28993#0: invalid number of arguments in "listen" directive in /Users/rong/Desktop/cache/tests/cache/.run-auth/conf/server.cache.conf:16
2026/09/20 16:04:25 [emerg] 29096#0: invalid number of arguments in "listen" directive in /Users/rong/Desktop/cache/tests/cache/.run-auth/conf/server.cache.conf:16
2026/09/20 16:05:00 [emerg] 29252#0: open() "/usr/local/nginx/logs/cache.log" failed (2: No such file or directory)
2026/09/20 16:05:00 [emerg] 29260#0: open() "/usr/local/nginx/logs/cache.log" failed (2: No such file or directory)
2026/09/20 16:05:00 [emerg] 29261#0: open() "/usr/local/nginx/logs/cache.log" failed (2: No such file or directory)
2026/09/20 16:05:06 [notice] 29363#0: signal process started
2026/09/20 16:05:06 [error] 29363#0: invalid PID number "" in "/Users/rong/Desktop/cache/tests/cache/.run-auth/logs/nginx.pid"
2026/09/20 16:06:33 [notice] 29591#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:06:33 [notice] 29591#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:06:34 [notice] 29599#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:06:34 [notice] 29599#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:06:34 [notice] 29600#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:06:34 [notice] 29600#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:06:34 [notice] 29600#0: using the "kqueue" event method
2026/09/20 16:06:34 [notice] 29600#0: nginx/1.30.4
2026/09/20 16:06:34 [notice] 29600#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 16:06:34 [notice] 29600#0: OS: Darwin 21.6.0
2026/09/20 16:06:34 [notice] 29600#0: hw.ncpu: 4
2026/09/20 16:06:34 [notice] 29600#0: net.inet.tcp.sendspace: 131072
2026/09/20 16:06:34 [notice] 29600#0: kern.ipc.somaxconn: 128
2026/09/20 16:06:34 [notice] 29600#0: hw.cachelinesize: 64
2026/09/20 16:06:34 [notice] 29600#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 16:06:34 [notice] 29601#0: start worker processes
2026/09/20 16:06:34 [notice] 29601#0: start worker process 29602
2026/09/20 16:06:34 [notice] 29601#0: start cache manager process 29604
2026/09/20 16:06:34 [notice] 29601#0: start cache loader process 29605
2026/09/20 16:06:34 [notice] 29601#0: signal 23 (SIGIO) received from 29604
2026/09/20 16:06:34 [notice] 29601#0: signal 23 (SIGIO) received from 29602
2026/09/20 16:06:35 [info] 29602#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:35 [info] 29602#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:35 [info] 29602#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:35 [info] 29602#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:35 [warn] 29602#0: [api] API Key 校验失败 client=127.0.0.1
2026/09/20 16:06:35 [info] 29602#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:35 [warn] 29602#0: [api] API Key 校验失败 client=127.0.0.1
2026/09/20 16:06:35 [info] 29602#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:35 [warn] 29602#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:06:35 [error] 29602#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:61721"
2026/09/20 16:06:35 [alert] 29602#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:61721"
2026/09/20 16:06:35 [info] 29602#0: *8 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:61722/@v/list", host: "127.0.0.1:61721"
2026/09/20 16:06:35 [alert] 29602#0: *8 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:61722/@v/list", host: "127.0.0.1:61721"
2026/09/20 16:06:35 [warn] 29602#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 16:06:35 [info] 29602#0: *10 kevent() reported that client prematurely closed connection while sending request to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:61722/@v/list", host: "127.0.0.1:61721"
2026/09/20 16:06:35 [alert] 29602#0: *10 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:61722/@v/list", host: "127.0.0.1:61721"
2026/09/20 16:06:36 [info] 29602#0: *12 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:36 [info] 29602#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:38 [info] 29602#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:38 [info] 29602#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:39 [info] 29602#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:39 [info] 29602#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:06:39 [warn] 29602#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 16:06:39 [alert] 29602#0: *20 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:61721"
2026/09/20 16:06:39 [notice] 29699#0: signal process started
2026/09/20 16:06:39 [notice] 29601#0: signal 3 (SIGQUIT) received from 29699, shutting down
2026/09/20 16:06:39 [notice] 29602#0: gracefully shutting down
2026/09/20 16:06:39 [notice] 29602#0: exiting
2026/09/20 16:06:39 [notice] 29604#0: exiting
2026/09/20 16:06:39 [notice] 29605#0: exiting
2026/09/20 16:06:39 [info] 29602#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 16:06:39 [notice] 29601#0: signal 23 (SIGIO) received from 29605
2026/09/20 16:06:39 [notice] 29602#0: exit
2026/09/20 16:06:39 [notice] 29601#0: signal 20 (SIGCHLD) received from 29604
2026/09/20 16:06:39 [notice] 29601#0: cache loader process 29605 exited with code 0
2026/09/20 16:06:39 [notice] 29601#0: cache manager process 29604 exited with code 0
2026/09/20 16:06:39 [notice] 29601#0: signal 23 (SIGIO) received
2026/09/20 16:06:39 [notice] 29601#0: signal 23 (SIGIO) received
2026/09/20 16:06:39 [notice] 29601#0: signal 20 (SIGCHLD) received from 29602
2026/09/20 16:06:39 [notice] 29601#0: worker process 29602 exited with code 0
2026/09/20 16:06:39 [notice] 29601#0: exit
2026/09/20 16:20:30 [notice] 31527#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:20:30 [notice] 31527#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:20:32 [notice] 31535#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:20:32 [notice] 31535#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:20:32 [notice] 31536#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:20:32 [notice] 31536#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:20:32 [notice] 31536#0: using the "kqueue" event method
2026/09/20 16:20:32 [notice] 31536#0: nginx/1.30.4
2026/09/20 16:20:32 [notice] 31536#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 16:20:32 [notice] 31536#0: OS: Darwin 21.6.0
2026/09/20 16:20:32 [notice] 31536#0: hw.ncpu: 4
2026/09/20 16:20:32 [notice] 31536#0: net.inet.tcp.sendspace: 131072
2026/09/20 16:20:32 [notice] 31536#0: kern.ipc.somaxconn: 128
2026/09/20 16:20:32 [notice] 31536#0: hw.cachelinesize: 64
2026/09/20 16:20:32 [notice] 31536#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 16:20:32 [notice] 31537#0: start worker processes
2026/09/20 16:20:32 [notice] 31537#0: start worker process 31538
2026/09/20 16:20:32 [notice] 31537#0: start cache manager process 31539
2026/09/20 16:20:32 [notice] 31537#0: start cache loader process 31540
2026/09/20 16:20:32 [notice] 31539#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:20:32 [notice] 31537#0: signal 23 (SIGIO) received from 31539
2026/09/20 16:20:32 [notice] 31538#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:20:32 [notice] 31537#0: signal 23 (SIGIO) received from 31538
2026/09/20 16:20:32 [notice] 31540#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:20:33 [info] 31538#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:33 [info] 31538#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:33 [info] 31538#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:33 [info] 31538#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:33 [info] 31538#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:33 [info] 31538#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:33 [warn] 31538#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:20:33 [error] 31538#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62141"
2026/09/20 16:20:33 [alert] 31538#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62141"
2026/09/20 16:20:33 [alert] 31538#0: *8 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:62141"
2026/09/20 16:20:33 [warn] 31538#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 16:20:33 [alert] 31538#0: *9 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:62141"
2026/09/20 16:20:33 [info] 31538#0: *10 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:33 [info] 31538#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:36 [info] 31538#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:36 [info] 31538#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:37 [info] 31538#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:37 [info] 31538#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:20:37 [warn] 31538#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 16:20:37 [alert] 31538#0: *17 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:62141"
2026/09/20 16:20:37 [notice] 31645#0: signal process started
2026/09/20 16:20:37 [notice] 31537#0: signal 3 (SIGQUIT) received from 31645, shutting down
2026/09/20 16:20:37 [notice] 31538#0: gracefully shutting down
2026/09/20 16:20:37 [notice] 31537#0: signal 23 (SIGIO) received
2026/09/20 16:20:37 [notice] 31538#0: exiting
2026/09/20 16:20:37 [notice] 31540#0: exiting
2026/09/20 16:20:37 [notice] 31537#0: signal 23 (SIGIO) received from 31540
2026/09/20 16:20:37 [notice] 31537#0: signal 23 (SIGIO) received from 31539
2026/09/20 16:20:37 [notice] 31539#0: exiting
2026/09/20 16:20:37 [notice] 31537#0: signal 20 (SIGCHLD) received from 31540
2026/09/20 16:20:37 [notice] 31537#0: cache loader process 31540 exited with code 0
2026/09/20 16:20:37 [info] 31538#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 16:20:37 [notice] 31537#0: signal 23 (SIGIO) received
2026/09/20 16:20:37 [notice] 31537#0: signal 20 (SIGCHLD) received from 31539
2026/09/20 16:20:37 [notice] 31537#0: cache manager process 31539 exited with code 0
2026/09/20 16:20:37 [notice] 31537#0: signal 23 (SIGIO) received
2026/09/20 16:20:37 [notice] 31538#0: exit
2026/09/20 16:20:37 [notice] 31537#0: signal 23 (SIGIO) received
2026/09/20 16:20:37 [notice] 31537#0: signal 20 (SIGCHLD) received from 31538
2026/09/20 16:20:37 [notice] 31537#0: worker process 31538 exited with code 0
2026/09/20 16:20:37 [notice] 31537#0: exit
2026/09/20 16:21:21 [notice] 31812#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:21:21 [notice] 31812#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:21:22 [notice] 31820#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:21:22 [notice] 31820#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:21:22 [notice] 31821#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:21:22 [notice] 31821#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:21:22 [notice] 31821#0: using the "kqueue" event method
2026/09/20 16:21:22 [notice] 31821#0: nginx/1.30.4
2026/09/20 16:21:22 [notice] 31821#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 16:21:22 [notice] 31821#0: OS: Darwin 21.6.0
2026/09/20 16:21:22 [notice] 31821#0: hw.ncpu: 4
2026/09/20 16:21:22 [notice] 31821#0: net.inet.tcp.sendspace: 131072
2026/09/20 16:21:22 [notice] 31821#0: kern.ipc.somaxconn: 128
2026/09/20 16:21:22 [notice] 31821#0: hw.cachelinesize: 64
2026/09/20 16:21:22 [notice] 31821#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 16:21:22 [notice] 31822#0: start worker processes
2026/09/20 16:21:22 [notice] 31822#0: start worker process 31823
2026/09/20 16:21:22 [notice] 31822#0: start cache manager process 31824
2026/09/20 16:21:22 [notice] 31822#0: start cache loader process 31825
2026/09/20 16:21:22 [notice] 31824#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:21:22 [notice] 31822#0: signal 23 (SIGIO) received from 31824
2026/09/20 16:21:22 [notice] 31823#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:21:22 [notice] 31822#0: signal 23 (SIGIO) received from 31823
2026/09/20 16:21:22 [notice] 31822#0: signal 23 (SIGIO) received
2026/09/20 16:21:22 [notice] 31825#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:21:23 [info] 31823#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:23 [info] 31823#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:23 [info] 31823#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:23 [info] 31823#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:23 [info] 31823#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:23 [info] 31823#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:23 [warn] 31823#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:21:23 [error] 31823#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62190"
2026/09/20 16:21:23 [alert] 31823#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62190"
2026/09/20 16:21:23 [info] 31823#0: *8 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62191/@v/list", host: "127.0.0.1:62190"
2026/09/20 16:21:23 [alert] 31823#0: *8 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62191/@v/list", host: "127.0.0.1:62190"
2026/09/20 16:21:23 [warn] 31823#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 16:21:23 [info] 31823#0: *10 kevent() reported that client prematurely closed connection while sending request to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62191/@v/list", host: "127.0.0.1:62190"
2026/09/20 16:21:23 [alert] 31823#0: *10 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62191/@v/list", host: "127.0.0.1:62190"
2026/09/20 16:21:24 [info] 31823#0: *12 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:24 [info] 31823#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:26 [info] 31823#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:26 [info] 31823#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:27 [info] 31823#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:27 [info] 31823#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:21:27 [warn] 31823#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 16:21:27 [alert] 31823#0: *21 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:62190"
2026/09/20 16:21:27 [notice] 31926#0: signal process started
2026/09/20 16:21:27 [notice] 31822#0: signal 3 (SIGQUIT) received from 31926, shutting down
2026/09/20 16:21:27 [notice] 31822#0: signal 23 (SIGIO) received
2026/09/20 16:21:27 [notice] 31823#0: gracefully shutting down
2026/09/20 16:21:27 [notice] 31823#0: exiting
2026/09/20 16:21:27 [notice] 31824#0: exiting
2026/09/20 16:21:27 [notice] 31825#0: exiting
2026/09/20 16:21:27 [notice] 31822#0: signal 23 (SIGIO) received from 31825
2026/09/20 16:21:27 [info] 31823#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 16:21:27 [notice] 31822#0: signal 20 (SIGCHLD) received from 31824
2026/09/20 16:21:27 [notice] 31822#0: cache manager process 31824 exited with code 0
2026/09/20 16:21:27 [notice] 31822#0: signal 23 (SIGIO) received
2026/09/20 16:21:27 [notice] 31822#0: signal 20 (SIGCHLD) received from 31825
2026/09/20 16:21:27 [notice] 31822#0: cache loader process 31825 exited with code 0
2026/09/20 16:21:27 [notice] 31822#0: signal 23 (SIGIO) received
2026/09/20 16:21:27 [notice] 31823#0: exit
2026/09/20 16:21:27 [notice] 31822#0: signal 23 (SIGIO) received
2026/09/20 16:21:27 [notice] 31822#0: signal 20 (SIGCHLD) received from 31823
2026/09/20 16:21:27 [notice] 31822#0: worker process 31823 exited with code 0
2026/09/20 16:21:27 [notice] 31822#0: exit
2026/09/20 16:24:09 [notice] 32346#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:24:09 [notice] 32346#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:24:09 [notice] 32354#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:24:09 [notice] 32354#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:24:09 [notice] 32355#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:24:09 [notice] 32355#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:24:09 [notice] 32355#0: using the "kqueue" event method
2026/09/20 16:24:09 [notice] 32355#0: nginx/1.30.4
2026/09/20 16:24:09 [notice] 32355#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 16:24:09 [notice] 32355#0: OS: Darwin 21.6.0
2026/09/20 16:24:09 [notice] 32355#0: hw.ncpu: 4
2026/09/20 16:24:09 [notice] 32355#0: net.inet.tcp.sendspace: 131072
2026/09/20 16:24:09 [notice] 32355#0: kern.ipc.somaxconn: 128
2026/09/20 16:24:09 [notice] 32355#0: hw.cachelinesize: 64
2026/09/20 16:24:09 [notice] 32355#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 16:24:09 [notice] 32356#0: start worker processes
2026/09/20 16:24:09 [notice] 32356#0: start worker process 32357
2026/09/20 16:24:09 [notice] 32356#0: start cache manager process 32358
2026/09/20 16:24:09 [notice] 32356#0: start cache loader process 32359
2026/09/20 16:24:09 [notice] 32358#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:24:09 [notice] 32356#0: signal 23 (SIGIO) received from 32358
2026/09/20 16:24:09 [notice] 32357#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:24:09 [notice] 32356#0: signal 23 (SIGIO) received from 32357
2026/09/20 16:24:09 [notice] 32359#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:24:10 [info] 32357#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:10 [info] 32357#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:10 [info] 32357#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:10 [info] 32357#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:10 [info] 32357#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:10 [info] 32357#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:10 [warn] 32357#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:24:10 [error] 32357#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62328"
2026/09/20 16:24:10 [alert] 32357#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62328"
2026/09/20 16:24:10 [info] 32357#0: *8 kevent() reported that client prematurely closed connection while sending request to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62329/@v/list", host: "127.0.0.1:62328"
2026/09/20 16:24:10 [alert] 32357#0: *8 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62329/@v/list", host: "127.0.0.1:62328"
2026/09/20 16:24:11 [warn] 32357#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 16:24:11 [info] 32357#0: *10 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62329/@v/list", host: "127.0.0.1:62328"
2026/09/20 16:24:11 [alert] 32357#0: *10 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62329/@v/list", host: "127.0.0.1:62328"
2026/09/20 16:24:11 [info] 32357#0: *12 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:11 [info] 32357#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:12 [info] 32357#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:13 [info] 32357#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:13 [info] 32357#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:13 [info] 32357#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:13 [warn] 32357#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 16:24:13 [alert] 32357#0: *21 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:62328"
2026/09/20 16:24:14 [notice] 32357#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 16:24:14 [info] 32357#0: *22 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:14 [info] 32357#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:14 [info] 32357#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:14 [warn] 32357#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:24:14 [error] 32357#0: *25 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62328"
2026/09/20 16:24:14 [alert] 32357#0: *25 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62328"
2026/09/20 16:24:14 [notice] 32357#0: [cache] 保存上游 route=npm base=http://127.0.0.1:62329 enabled=true active=true
2026/09/20 16:24:14 [info] 32357#0: *26 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:15 [info] 32357#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:15 [info] 32357#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:24:15 [notice] 32514#0: signal process started
2026/09/20 16:24:15 [notice] 32356#0: signal 3 (SIGQUIT) received from 32514, shutting down
2026/09/20 16:24:15 [notice] 32357#0: gracefully shutting down
2026/09/20 16:24:15 [notice] 32356#0: signal 23 (SIGIO) received from 32357
2026/09/20 16:24:15 [notice] 32357#0: exiting
2026/09/20 16:24:15 [notice] 32356#0: signal 23 (SIGIO) received from 32359
2026/09/20 16:24:15 [notice] 32359#0: exiting
2026/09/20 16:24:15 [notice] 32358#0: exiting
2026/09/20 16:24:15 [notice] 32356#0: signal 23 (SIGIO) received
2026/09/20 16:24:15 [info] 32357#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 16:24:15 [notice] 32356#0: signal 20 (SIGCHLD) received from 32358
2026/09/20 16:24:15 [notice] 32356#0: cache loader process 32359 exited with code 0
2026/09/20 16:24:15 [notice] 32356#0: cache manager process 32358 exited with code 0
2026/09/20 16:24:15 [notice] 32356#0: signal 23 (SIGIO) received
2026/09/20 16:24:15 [notice] 32357#0: exit
2026/09/20 16:24:15 [notice] 32356#0: signal 23 (SIGIO) received
2026/09/20 16:24:15 [notice] 32356#0: signal 20 (SIGCHLD) received from 32357
2026/09/20 16:24:15 [notice] 32356#0: worker process 32357 exited with code 0
2026/09/20 16:24:15 [notice] 32356#0: exit
2026/09/20 16:29:22 [notice] 33000#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:29:22 [notice] 33000#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:29:23 [notice] 33008#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:29:23 [notice] 33008#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:29:23 [notice] 33009#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:29:23 [notice] 33009#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:29:23 [notice] 33009#0: using the "kqueue" event method
2026/09/20 16:29:23 [notice] 33009#0: nginx/1.30.4
2026/09/20 16:29:23 [notice] 33009#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 16:29:23 [notice] 33009#0: OS: Darwin 21.6.0
2026/09/20 16:29:23 [notice] 33009#0: hw.ncpu: 4
2026/09/20 16:29:23 [notice] 33009#0: net.inet.tcp.sendspace: 131072
2026/09/20 16:29:23 [notice] 33009#0: kern.ipc.somaxconn: 128
2026/09/20 16:29:23 [notice] 33009#0: hw.cachelinesize: 64
2026/09/20 16:29:23 [notice] 33009#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 16:29:23 [notice] 33010#0: start worker processes
2026/09/20 16:29:23 [notice] 33010#0: start worker process 33011
2026/09/20 16:29:23 [notice] 33010#0: start cache manager process 33012
2026/09/20 16:29:23 [notice] 33010#0: start cache loader process 33013
2026/09/20 16:29:23 [notice] 33012#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:29:23 [notice] 33010#0: signal 23 (SIGIO) received from 33012
2026/09/20 16:29:23 [notice] 33011#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:29:23 [notice] 33010#0: signal 23 (SIGIO) received from 33011
2026/09/20 16:29:23 [notice] 33013#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:29:24 [info] 33011#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:24 [info] 33011#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:24 [info] 33011#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:24 [info] 33011#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:24 [info] 33011#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:24 [info] 33011#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:24 [warn] 33011#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:29:24 [error] 33011#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62582"
2026/09/20 16:29:24 [alert] 33011#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62582"
2026/09/20 16:29:24 [info] 33011#0: *8 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62583/@v/list", host: "127.0.0.1:62582"
2026/09/20 16:29:24 [alert] 33011#0: *8 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62583/@v/list", host: "127.0.0.1:62582"
2026/09/20 16:29:24 [warn] 33011#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 16:29:24 [info] 33011#0: *10 kevent() reported that client prematurely closed connection while sending request to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62583/@v/list", host: "127.0.0.1:62582"
2026/09/20 16:29:24 [alert] 33011#0: *10 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:62583/@v/list", host: "127.0.0.1:62582"
2026/09/20 16:29:24 [info] 33011#0: *12 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:24 [info] 33011#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:27 [info] 33011#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:28 [info] 33011#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:29 [info] 33011#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:29 [info] 33011#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:29 [warn] 33011#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 16:29:29 [alert] 33011#0: *21 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:62582"
2026/09/20 16:29:29 [notice] 33011#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 16:29:29 [info] 33011#0: *22 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:29 [info] 33011#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:29 [info] 33011#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:30 [warn] 33011#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:29:30 [error] 33011#0: *25 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62582"
2026/09/20 16:29:30 [alert] 33011#0: *25 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:62582"
2026/09/20 16:29:30 [notice] 33011#0: [cache] 保存上游 route=npm base=http://127.0.0.1:62583 enabled=true active=true
2026/09/20 16:29:30 [info] 33011#0: *26 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:31 [info] 33011#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:31 [info] 33011#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:29:31 [notice] 33169#0: signal process started
2026/09/20 16:29:31 [notice] 33010#0: signal 3 (SIGQUIT) received from 33169, shutting down
2026/09/20 16:29:31 [notice] 33011#0: gracefully shutting down
2026/09/20 16:29:31 [notice] 33010#0: signal 23 (SIGIO) received
2026/09/20 16:29:31 [notice] 33011#0: exiting
2026/09/20 16:29:31 [notice] 33013#0: exiting
2026/09/20 16:29:31 [notice] 33012#0: exiting
2026/09/20 16:29:31 [notice] 33010#0: signal 23 (SIGIO) received from 33012
2026/09/20 16:29:31 [info] 33011#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 16:29:31 [notice] 33010#0: signal 20 (SIGCHLD) received from 33012
2026/09/20 16:29:31 [notice] 33010#0: cache manager process 33012 exited with code 0
2026/09/20 16:29:31 [notice] 33010#0: signal 23 (SIGIO) received
2026/09/20 16:29:31 [notice] 33010#0: signal 20 (SIGCHLD) received from 33013
2026/09/20 16:29:31 [notice] 33010#0: cache loader process 33013 exited with code 0
2026/09/20 16:29:31 [notice] 33010#0: signal 23 (SIGIO) received
2026/09/20 16:29:31 [notice] 33011#0: exit
2026/09/20 16:29:31 [notice] 33010#0: signal 23 (SIGIO) received
2026/09/20 16:29:31 [notice] 33010#0: signal 20 (SIGCHLD) received from 33011
2026/09/20 16:29:31 [notice] 33010#0: worker process 33011 exited with code 0
2026/09/20 16:29:31 [notice] 33010#0: exit
2026/09/20 16:59:21 [notice] 39310#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:59:21 [notice] 39310#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:59:22 [notice] 39318#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:59:22 [notice] 39318#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:59:22 [notice] 39319#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 16:59:22 [notice] 39319#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 16:59:22 [notice] 39319#0: using the "kqueue" event method
2026/09/20 16:59:22 [notice] 39319#0: nginx/1.30.4
2026/09/20 16:59:22 [notice] 39319#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 16:59:22 [notice] 39319#0: OS: Darwin 21.6.0
2026/09/20 16:59:22 [notice] 39319#0: hw.ncpu: 4
2026/09/20 16:59:22 [notice] 39319#0: net.inet.tcp.sendspace: 131072
2026/09/20 16:59:22 [notice] 39319#0: kern.ipc.somaxconn: 128
2026/09/20 16:59:22 [notice] 39319#0: hw.cachelinesize: 64
2026/09/20 16:59:22 [notice] 39319#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 16:59:22 [notice] 39320#0: start worker processes
2026/09/20 16:59:22 [notice] 39320#0: start worker process 39321
2026/09/20 16:59:22 [notice] 39320#0: start cache manager process 39322
2026/09/20 16:59:22 [notice] 39320#0: start cache loader process 39323
2026/09/20 16:59:22 [notice] 39322#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:59:22 [notice] 39320#0: signal 23 (SIGIO) received from 39322
2026/09/20 16:59:22 [notice] 39321#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:59:22 [notice] 39320#0: signal 23 (SIGIO) received from 39321
2026/09/20 16:59:22 [notice] 39320#0: signal 23 (SIGIO) received
2026/09/20 16:59:22 [notice] 39323#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 16:59:23 [info] 39321#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:23 [info] 39321#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:23 [info] 39321#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:23 [info] 39321#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:23 [info] 39321#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:23 [info] 39321#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:23 [warn] 39321#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:59:23 [error] 39321#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:63819"
2026/09/20 16:59:23 [alert] 39321#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:63819"
2026/09/20 16:59:23 [info] 39321#0: *8 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:63820/@v/list", host: "127.0.0.1:63819"
2026/09/20 16:59:23 [alert] 39321#0: *8 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:63820/@v/list", host: "127.0.0.1:63819"
2026/09/20 16:59:23 [warn] 39321#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 16:59:23 [info] 39321#0: *10 kevent() reported that client prematurely closed connection while sending request to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:63820/@v/list", host: "127.0.0.1:63819"
2026/09/20 16:59:23 [alert] 39321#0: *10 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:63820/@v/list", host: "127.0.0.1:63819"
2026/09/20 16:59:23 [info] 39321#0: *12 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:24 [info] 39321#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:26 [info] 39321#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:26 [info] 39321#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:27 [info] 39321#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:27 [info] 39321#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:27 [warn] 39321#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 16:59:27 [alert] 39321#0: *21 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:63819"
2026/09/20 16:59:27 [notice] 39321#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 16:59:27 [info] 39321#0: *22 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:27 [info] 39321#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:27 [info] 39321#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:28 [warn] 39321#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 16:59:28 [error] 39321#0: *25 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:63819"
2026/09/20 16:59:28 [alert] 39321#0: *25 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:63819"
2026/09/20 16:59:28 [notice] 39321#0: [cache] 保存上游 route=npm base=http://127.0.0.1:63820 enabled=true active=true
2026/09/20 16:59:28 [info] 39321#0: *26 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:28 [info] 39321#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:28 [info] 39321#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 16:59:28 [notice] 39479#0: signal process started
2026/09/20 16:59:28 [notice] 39320#0: signal 3 (SIGQUIT) received from 39479, shutting down
2026/09/20 16:59:28 [notice] 39321#0: gracefully shutting down
2026/09/20 16:59:28 [notice] 39321#0: exiting
2026/09/20 16:59:28 [notice] 39320#0: signal 23 (SIGIO) received
2026/09/20 16:59:28 [notice] 39323#0: exiting
2026/09/20 16:59:28 [notice] 39322#0: exiting
2026/09/20 16:59:28 [notice] 39320#0: signal 23 (SIGIO) received
2026/09/20 16:59:28 [notice] 39320#0: signal 23 (SIGIO) received
2026/09/20 16:59:28 [info] 39321#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 16:59:28 [notice] 39321#0: exit
2026/09/20 16:59:28 [notice] 39320#0: signal 20 (SIGCHLD) received from 39323
2026/09/20 16:59:28 [notice] 39320#0: cache loader process 39323 exited with code 0
2026/09/20 16:59:28 [notice] 39320#0: signal 23 (SIGIO) received
2026/09/20 16:59:28 [notice] 39320#0: signal 20 (SIGCHLD) received from 39322
2026/09/20 16:59:28 [notice] 39320#0: cache manager process 39322 exited with code 0
2026/09/20 16:59:28 [notice] 39320#0: signal 23 (SIGIO) received
2026/09/20 16:59:28 [notice] 39320#0: signal 23 (SIGIO) received from 39321
2026/09/20 16:59:28 [notice] 39320#0: signal 20 (SIGCHLD) received from 39321
2026/09/20 16:59:28 [notice] 39320#0: worker process 39321 exited with code 0
2026/09/20 16:59:28 [notice] 39320#0: exit
2026/09/20 17:58:12 [notice] 50884#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 17:58:12 [notice] 50884#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 17:58:12 [notice] 50892#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 17:58:12 [notice] 50892#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 17:58:12 [notice] 50893#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 17:58:12 [notice] 50893#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 17:58:12 [notice] 50893#0: using the "kqueue" event method
2026/09/20 17:58:12 [notice] 50893#0: nginx/1.30.4
2026/09/20 17:58:12 [notice] 50893#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 17:58:12 [notice] 50893#0: OS: Darwin 21.6.0
2026/09/20 17:58:12 [notice] 50893#0: hw.ncpu: 4
2026/09/20 17:58:12 [notice] 50893#0: net.inet.tcp.sendspace: 131072
2026/09/20 17:58:12 [notice] 50893#0: kern.ipc.somaxconn: 128
2026/09/20 17:58:12 [notice] 50893#0: hw.cachelinesize: 64
2026/09/20 17:58:12 [notice] 50893#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 17:58:12 [notice] 50894#0: start worker processes
2026/09/20 17:58:12 [notice] 50894#0: start worker process 50895
2026/09/20 17:58:12 [notice] 50894#0: start cache manager process 50896
2026/09/20 17:58:12 [notice] 50894#0: start cache loader process 50897
2026/09/20 17:58:12 [notice] 50896#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 17:58:12 [notice] 50894#0: signal 23 (SIGIO) received from 50896
2026/09/20 17:58:12 [notice] 50895#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 17:58:12 [notice] 50894#0: signal 23 (SIGIO) received from 50895
2026/09/20 17:58:12 [notice] 50894#0: signal 23 (SIGIO) received
2026/09/20 17:58:12 [notice] 50897#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 17:58:13 [info] 50895#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:13 [info] 50895#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:14 [info] 50895#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:14 [info] 50895#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:14 [info] 50895#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:14 [info] 50895#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:14 [warn] 50895#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 17:58:14 [error] 50895#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:49630"
2026/09/20 17:58:14 [alert] 50895#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:49630"
2026/09/20 17:58:14 [info] 50895#0: *8 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:49631/@v/list", host: "127.0.0.1:49630"
2026/09/20 17:58:14 [alert] 50895#0: *8 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:49631/@v/list", host: "127.0.0.1:49630"
2026/09/20 17:58:14 [warn] 50895#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 17:58:14 [info] 50895#0: *10 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:49631/@v/list", host: "127.0.0.1:49630"
2026/09/20 17:58:14 [alert] 50895#0: *10 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:49631/@v/list", host: "127.0.0.1:49630"
2026/09/20 17:58:14 [info] 50895#0: *12 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:14 [info] 50895#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:15 [info] 50895#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:16 [info] 50895#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:16 [info] 50895#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:16 [info] 50895#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:16 [warn] 50895#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 17:58:16 [alert] 50895#0: *21 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:49630"
2026/09/20 17:58:16 [notice] 50895#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 17:58:16 [info] 50895#0: *22 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:16 [info] 50895#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:16 [info] 50895#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:17 [warn] 50895#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 17:58:17 [error] 50895#0: *25 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:49630"
2026/09/20 17:58:17 [alert] 50895#0: *25 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:49630"
2026/09/20 17:58:17 [notice] 50895#0: [cache] 保存上游 route=npm base=http://127.0.0.1:49631 enabled=true active=true
2026/09/20 17:58:17 [info] 50895#0: *26 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:17 [info] 50895#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:17 [info] 50895#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:18 [notice] 50895#0: [cache] 测试上游 route=go
2026/09/20 17:58:18 [info] 50895#0: *30 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 17:58:19 [notice] 51078#0: signal process started
2026/09/20 17:58:19 [notice] 50894#0: signal 3 (SIGQUIT) received from 51078, shutting down
2026/09/20 17:58:19 [notice] 50895#0: gracefully shutting down
2026/09/20 17:58:19 [notice] 50894#0: signal 23 (SIGIO) received from 50895
2026/09/20 17:58:19 [notice] 50897#0: exiting
2026/09/20 17:58:19 [notice] 50896#0: exiting
2026/09/20 17:58:19 [notice] 50895#0: exiting
2026/09/20 17:58:19 [notice] 50894#0: signal 23 (SIGIO) received
2026/09/20 17:58:19 [info] 50895#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 17:58:19 [notice] 50894#0: signal 20 (SIGCHLD) received from 50897
2026/09/20 17:58:19 [notice] 50894#0: cache loader process 50897 exited with code 0
2026/09/20 17:58:19 [notice] 50894#0: signal 23 (SIGIO) received
2026/09/20 17:58:19 [notice] 50895#0: exit
2026/09/20 17:58:19 [notice] 50894#0: signal 20 (SIGCHLD) received from 50896
2026/09/20 17:58:19 [notice] 50894#0: cache manager process 50896 exited with code 0
2026/09/20 17:58:19 [notice] 50894#0: signal 23 (SIGIO) received
2026/09/20 17:58:19 [notice] 50894#0: signal 23 (SIGIO) received from 50895
2026/09/20 17:58:19 [notice] 50894#0: signal 20 (SIGCHLD) received from 50895
2026/09/20 17:58:19 [notice] 50894#0: worker process 50895 exited with code 0
2026/09/20 17:58:19 [notice] 50894#0: exit
2026/09/20 18:29:05 [notice] 56260#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:29:05 [notice] 56260#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:29:05 [notice] 56260#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 18:29:06 [notice] 56268#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:29:06 [notice] 56268#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:29:06 [notice] 56268#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 18:29:06 [notice] 56269#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:29:06 [notice] 56269#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:29:06 [notice] 56269#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 18:29:06 [notice] 56269#0: using the "kqueue" event method
2026/09/20 18:29:06 [notice] 56269#0: nginx/1.30.4
2026/09/20 18:29:06 [notice] 56269#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 18:29:06 [notice] 56269#0: OS: Darwin 21.6.0
2026/09/20 18:29:06 [notice] 56269#0: hw.ncpu: 4
2026/09/20 18:29:06 [notice] 56269#0: net.inet.tcp.sendspace: 131072
2026/09/20 18:29:06 [notice] 56269#0: kern.ipc.somaxconn: 128
2026/09/20 18:29:06 [notice] 56269#0: hw.cachelinesize: 64
2026/09/20 18:29:06 [notice] 56269#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 18:29:06 [notice] 56270#0: start worker processes
2026/09/20 18:29:06 [notice] 56270#0: start worker process 56271
2026/09/20 18:29:06 [notice] 56270#0: start cache manager process 56272
2026/09/20 18:29:06 [notice] 56270#0: start cache loader process 56273
2026/09/20 18:29:06 [notice] 56271#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 18:29:06 [notice] 56270#0: signal 23 (SIGIO) received from 56271
2026/09/20 18:29:06 [notice] 56272#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 18:29:06 [notice] 56270#0: signal 23 (SIGIO) received from 56272
2026/09/20 18:29:06 [notice] 56273#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 18:29:07 [info] 56271#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:07 [info] 56271#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:07 [info] 56271#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:07 [info] 56271#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:07 [info] 56271#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:07 [info] 56271#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:07 [warn] 56271#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 18:29:07 [error] 56271#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:50857"
2026/09/20 18:29:07 [alert] 56271#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:50857"
2026/09/20 18:29:07 [info] 56271#0: *8 kevent() reported that client prematurely closed connection while sending request to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:50858/@v/list", host: "127.0.0.1:50857"
2026/09/20 18:29:08 [warn] 56271#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 18:29:08 [alert] 56271#0: *8 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:50858/@v/list", host: "127.0.0.1:50857"
2026/09/20 18:29:08 [info] 56271#0: *10 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:50858/@v/list", host: "127.0.0.1:50857"
2026/09/20 18:29:08 [alert] 56271#0: *10 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:50858/@v/list", host: "127.0.0.1:50857"
2026/09/20 18:29:08 [info] 56271#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:08 [info] 56271#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:10 [info] 56271#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:10 [info] 56271#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:11 [info] 56271#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:11 [info] 56271#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:11 [warn] 56271#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 18:29:11 [alert] 56271#0: *21 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:50857"
2026/09/20 18:29:11 [notice] 56271#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 18:29:11 [info] 56271#0: *22 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:11 [info] 56271#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:11 [info] 56271#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:11 [warn] 56271#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 18:29:11 [error] 56271#0: *25 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:50857"
2026/09/20 18:29:11 [alert] 56271#0: *25 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:50857"
2026/09/20 18:29:11 [notice] 56271#0: [cache] 保存上游 route=npm base=http://127.0.0.1:50858 enabled=true active=true
2026/09/20 18:29:11 [info] 56271#0: *26 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:12 [info] 56271#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:12 [info] 56271#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:12 [notice] 56271#0: [cache] 测试上游 route=go
2026/09/20 18:29:12 [info] 56271#0: *30 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:13 [notice] 56456#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:29:13 [notice] 56456#0: signal process started
2026/09/20 18:29:13 [notice] 56270#0: signal 3 (SIGQUIT) received from 56456, shutting down
2026/09/20 18:29:13 [notice] 56271#0: gracefully shutting down
2026/09/20 18:29:13 [notice] 56271#0: exiting
2026/09/20 18:29:13 [info] 56271#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 18:29:13 [notice] 56271#0: exit
2026/09/20 18:29:13 [notice] 56273#0: exiting
2026/09/20 18:29:13 [notice] 56272#0: exiting
2026/09/20 18:29:13 [notice] 56270#0: signal 23 (SIGIO) received
2026/09/20 18:29:13 [notice] 56270#0: signal 20 (SIGCHLD) received from 56273
2026/09/20 18:29:13 [notice] 56270#0: cache loader process 56273 exited with code 0
2026/09/20 18:29:13 [notice] 56270#0: signal 23 (SIGIO) received
2026/09/20 18:29:13 [notice] 56270#0: signal 23 (SIGIO) received
2026/09/20 18:29:13 [notice] 56270#0: signal 20 (SIGCHLD) received from 56271
2026/09/20 18:29:13 [notice] 56270#0: cache manager process 56272 exited with code 0
2026/09/20 18:29:13 [notice] 56270#0: worker process 56271 exited with code 0
2026/09/20 18:29:13 [notice] 56270#0: exit
2026/09/20 21:03:02 [notice] 64920#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 21:03:02 [notice] 64920#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:03:02 [notice] 64920#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 21:03:02 [notice] 64928#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 21:03:02 [notice] 64928#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:03:02 [notice] 64928#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 21:03:02 [notice] 64929#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 21:03:02 [notice] 64929#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:03:02 [notice] 64929#0: [ipass] 已装载 5 个账号 Key、0 个 LLM 上游、0 个 API 代理、2 个缓存上游
2026/09/20 21:03:02 [notice] 64929#0: using the "kqueue" event method
2026/09/20 21:03:02 [notice] 64929#0: nginx/1.30.4
2026/09/20 21:03:02 [notice] 64929#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 21:03:02 [notice] 64929#0: OS: Darwin 21.6.0
2026/09/20 21:03:02 [notice] 64929#0: hw.ncpu: 4
2026/09/20 21:03:02 [notice] 64929#0: net.inet.tcp.sendspace: 131072
2026/09/20 21:03:02 [notice] 64929#0: kern.ipc.somaxconn: 128
2026/09/20 21:03:02 [notice] 64929#0: hw.cachelinesize: 64
2026/09/20 21:03:02 [notice] 64929#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 21:03:02 [notice] 64930#0: start worker processes
2026/09/20 21:03:02 [notice] 64930#0: start worker process 64931
2026/09/20 21:03:02 [notice] 64930#0: start cache manager process 64932
2026/09/20 21:03:02 [notice] 64930#0: start cache loader process 64933
2026/09/20 21:03:02 [notice] 64932#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 21:03:02 [notice] 64930#0: signal 23 (SIGIO) received from 64932
2026/09/20 21:03:02 [notice] 64931#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 21:03:02 [notice] 64930#0: signal 23 (SIGIO) received from 64931
2026/09/20 21:03:02 [notice] 64930#0: signal 23 (SIGIO) received from 64931
2026/09/20 21:03:02 [notice] 64933#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json)
2026/09/20 21:03:03 [info] 64931#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:03 [info] 64931#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:04 [info] 64931#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:04 [info] 64931#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:04 [info] 64931#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:04 [info] 64931#0: *6 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:04 [warn] 64931#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 21:03:04 [error] 64931#0: *7 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:54166"
2026/09/20 21:03:04 [alert] 64931#0: *7 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:54166"
2026/09/20 21:03:04 [info] 64931#0: *8 kevent() reported that client prematurely closed connection while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:54167/@v/list", host: "127.0.0.1:54166"
2026/09/20 21:03:04 [alert] 64931#0: *8 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:54167/@v/list", host: "127.0.0.1:54166"
2026/09/20 21:03:04 [warn] 64931#0: [cache] API Key 校验失败 route=go client=127.0.0.1
2026/09/20 21:03:04 [info] 64931#0: *10 kevent() reported that client prematurely closed connection while sending request to upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:54167/@v/list", host: "127.0.0.1:54166"
2026/09/20 21:03:04 [alert] 64931#0: *10 header already sent while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", upstream: "http://127.0.0.1:54167/@v/list", host: "127.0.0.1:54166"
2026/09/20 21:03:04 [info] 64931#0: *12 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:04 [info] 64931#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:06 [info] 64931#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:06 [info] 64931#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:07 [info] 64931#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:07 [info] 64931#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:07 [warn] 64931#0: [llm] carol 触发每分钟限流 3/2,本请求 429
2026/09/20 21:03:07 [alert] 64931#0: *21 header already sent, client: 127.0.0.1, server: _, request: "GET /go/@v/list HTTP/1.1", host: "127.0.0.1:54166"
2026/09/20 21:03:07 [notice] 64931#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 21:03:07 [info] 64931#0: *22 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:07 [info] 64931#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:07 [info] 64931#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:08 [warn] 64931#0: [cache] 路由 npm 未配置上游,拒绝 /npm/foo(client=127.0.0.1)
2026/09/20 21:03:08 [error] 64931#0: *25 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:54166"
2026/09/20 21:03:08 [alert] 64931#0: *25 header already sent, client: 127.0.0.1, server: _, request: "GET /npm/foo HTTP/1.1", host: "127.0.0.1:54166"
2026/09/20 21:03:08 [notice] 64931#0: [cache] 保存上游 route=npm base=http://127.0.0.1:54167 enabled=true active=true
2026/09/20 21:03:08 [info] 64931#0: *26 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:08 [info] 64931#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:08 [info] 64931#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:09 [notice] 64931#0: [cache] 测试上游 route=go
2026/09/20 21:03:09 [info] 64931#0: *30 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:03:10 [notice] 65115#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 21:03:10 [notice] 65115#0: signal process started
2026/09/20 21:03:10 [notice] 64930#0: signal 3 (SIGQUIT) received from 65115, shutting down
2026/09/20 21:03:10 [notice] 64931#0: gracefully shutting down
2026/09/20 21:03:10 [notice] 64930#0: signal 23 (SIGIO) received from 64931
2026/09/20 21:03:10 [notice] 64932#0: exiting
2026/09/20 21:03:10 [notice] 64931#0: exiting
2026/09/20 21:03:10 [notice] 64933#0: exiting
2026/09/20 21:03:10 [notice] 64930#0: signal 23 (SIGIO) received
2026/09/20 21:03:10 [info] 64931#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-auth/data/llm-stats.json
2026/09/20 21:03:10 [notice] 64931#0: exit
2026/09/20 21:03:10 [notice] 64930#0: signal 20 (SIGCHLD) received from 64932
2026/09/20 21:03:10 [notice] 64930#0: cache manager process 64932 exited with code 0
2026/09/20 21:03:10 [notice] 64930#0: signal 23 (SIGIO) received
2026/09/20 21:03:10 [notice] 64930#0: signal 20 (SIGCHLD) received from 64933
2026/09/20 21:03:10 [notice] 64930#0: cache loader process 64933 exited with code 0
2026/09/20 21:03:10 [notice] 64930#0: signal 23 (SIGIO) received
2026/09/20 21:03:10 [notice] 64930#0: signal 20 (SIGCHLD) received from 64931
2026/09/20 21:03:10 [notice] 64930#0: worker process 64931 exited with code 0
2026/09/20 21:03:10 [notice] 64930#0: signal 23 (SIGIO) received from 64931
2026/09/20 21:03:10 [notice] 64930#0: exit
-1
View File
@@ -1 +0,0 @@
ECHO:GET /@v/list?x=1
-11
View File
@@ -1,11 +0,0 @@
HTTP/1.1 200 OK
Server: nginx/1.30.4
Date: Sun, 20 Sep 2026 13:03:04 GMT
Content-Type: application/octet-stream
Content-Length: 21
Connection: keep-alive
ETag: "21"
Cache-Control: public, max-age=3600
X-Cache-Status: MISS
X-Cache-Eco: go
-11
View File
@@ -1,11 +0,0 @@
HTTP/1.1 200 OK
Server: nginx/1.30.4
Date: Sun, 20 Sep 2026 13:03:06 GMT
Content-Type: application/octet-stream
Content-Length: 21
Connection: keep-alive
ETag: "21"
Cache-Control: public, max-age=3600
X-Cache-Status: MISS
X-Cache-Eco: cargo
-1
View File
@@ -1 +0,0 @@
{"code":200,"data":{"allowed_models":[],"api_key":"sk_admin_0000000000000000000000000000000000000000000000ab","api_key_masked":"sk_admin...00ab","created_at":1757500000,"created_at_text":"2025-09-10 18:26:40","display_name":"","llm_daily":0,"llm_rpm":60,"name":"admin","role":"admin","temp_grant":false,"temp_grant_left":0,"temp_grant_left_text":"","temp_grant_until":0,"temp_grant_until_text":"","username":"admin"},"msg":"登录成功"}
-1
View File
@@ -1 +0,0 @@
ECHO:GET /
-1
View File
@@ -1 +0,0 @@
GET / auth=Bearer upstream-secret-token
-1
View File
@@ -1 +0,0 @@
mock upstream on 54167
-1
View File
@@ -1 +0,0 @@
/Users/rong/Desktop/cache/www
-5
View File
@@ -1,5 +0,0 @@
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_127.0.0.1 FALSE / FALSE 1789938349 ipass_admin_session 7a6458a49d2182c315cc0b20c812fcecd7587f7ce9b13c6f16031d35cd9d8309
-1
View File
@@ -1 +0,0 @@
{"code":401,"msg":"未登录或会话已过期,请重新登录"}
-1
View File
@@ -1 +0,0 @@
{"code":200,"data":{"active":2,"capacity":{"available":true,"reason":"","scanned":true,"totals":{"crit":0,"disk_bytes":0,"entries":4,"limit_bytes":429497778176,"pct":0.0,"used_bytes":630784,"warn":0,"zones":6},"zones":[{"bsize":4096,"cold":true,"dir":"/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/go","dir_exists":true,"disk_bytes":0,"disk_files":0,"disk_truncated":false,"eco":"go","entries":0,"entries_cap_est":873813,"inactive_secs":604800,"index_pressure":false,"keys_zone_bytes":104857600,"level":"ok","limit_bytes":53687091200,"loading":false,"pct":0.0,"routes":["go"],"used_bytes":0,"zone":"go"},{"bsize":4096,"cold":true,"dir":"/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/cargo","dir_exists":true,"disk_bytes":0,"disk_files":0,"disk_truncated":false,"eco":"cargo","entries":0,"entries_cap_est":873813,"inactive_secs":604800,"index_pressure":false,"keys_zone_bytes":104857600,"level":"ok","limit_bytes":53687091200,"loading":false,"pct":0.0,"routes":["cargo","cargo-dl"],"used_bytes":0,"zone":"cargo"},{"bsize":4096,"cold":true,"dir":"/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/pypi","dir_exists":true,"disk_bytes":0,"disk_files":0,"disk_truncated":false,"eco":"pypi","entries":0,"entries_cap_est":873813,"inactive_secs":604800,"index_pressure":false,"keys_zone_bytes":104857600,"level":"ok","limit_bytes":53687091200,"loading":false,"pct":0.0,"routes":["pypi","pypi-files"],"used_bytes":0,"zone":"pypi"},{"bsize":4096,"cold":true,"dir":"/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/npm","dir_exists":true,"disk_bytes":0,"disk_files":0,"disk_truncated":false,"eco":"npm","entries":4,"entries_cap_est":873813,"inactive_secs":3600,"index_pressure":false,"keys_zone_bytes":104857600,"level":"ok","limit_bytes":1048576,"loading":false,"pct":60.2,"routes":["npm"],"used_bytes":630784,"zone":"npm"},{"bsize":4096,"cold":true,"dir":"/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/maven","dir_exists":true,"disk_bytes":0,"disk_files":0,"disk_truncated":false,"eco":"maven","entries":0,"entries_cap_est":873813,"inactive_secs":604800,"index_pressure":false,"keys_zone_bytes":104857600,"level":"ok","limit_bytes":53687091200,"loading":false,"pct":0.0,"routes":["maven"],"used_bytes":0,"zone":"maven"},{"bsize":4096,"cold":true,"dir":"/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/docker","dir_exists":true,"disk_bytes":0,"disk_files":0,"disk_truncated":false,"eco":"docker","entries":0,"entries_cap_est":1747626,"inactive_secs":604800,"index_pressure":false,"keys_zone_bytes":209715200,"level":"ok","limit_bytes":214748364800,"loading":false,"pct":0.0,"routes":["docker"],"used_bytes":0,"zone":"docker"}]},"configured":2,"count":8,"entry":"http://127.0.0.1:18087","items":[{"active":false,"base":"","client":{"command":"export GOPROXY=http://127.0.0.1:18087/go","label":"Go module proxy"},"configured":false,"default_base":"https://proxy.golang.org","desc":"","eco":"go","enabled":true,"key_masked":"","key_set":false,"mode":"proxy","name":"","note":"","route":"go","updated_at":0,"uri":"/go/"},{"active":false,"base":"","client":{"command":"mkdir -p ~/.cargo && printf '[registries.crates-io]\\nindex = \"sparse+http://127.0.0.1:18087/cargo/\"\\n' >> ~/.cargo/config.toml","label":"crates.io 稀疏索引(包本体需另配 /cargo-dl/,见文档)"},"configured":false,"default_base":"https://index.crates.io","desc":"","eco":"cargo","enabled":true,"key_masked":"","key_set":false,"mode":"proxy","name":"","note":"","route":"cargo","updated_at":0,"uri":"/cargo/"},{"active":false,"base":"","client":{"command":"mkdir -p ~/.cargo && printf '[registries.crates-io]\\nindex = \"sparse+http://127.0.0.1:18087/cargo/\"\\n' >> ~/.cargo/config.toml","label":"crates.io 稀疏索引(包本体需另配 /cargo-dl/,见文档)"},"configured":false,"default_base":"https://static.crates.io","desc":"","eco":"cargo","enabled":true,"key_masked":"","key_set":false,"mode":"proxy","name":"","note":"","route":"cargo-dl","updated_at":0,"uri":"/cargo-dl/"},{"active":false,"base":"","client":{"command":"pip config set global.index-url http://127.0.0.1:18087/pypi/simple/","label":"PyPI 索引(包文件需另配 /pypi-files/,见文档)"},"configured":false,"default_base":"https://pypi.org","desc":"","eco":"pypi","enabled":true,"key_masked":"","key_set":false,"mode":"proxy","name":"","note":"","route":"pypi","updated_at":0,"uri":"/pypi/"},{"active":false,"base":"","client":{"command":"pip config set global.index-url http://127.0.0.1:18087/pypi/simple/","label":"PyPI 索引(包文件需另配 /pypi-files/,见文档)"},"configured":false,"default_base":"https://files.pythonhosted.org","desc":"","eco":"pypi","enabled":true,"key_masked":"","key_set":false,"mode":"proxy","name":"","note":"","route":"pypi-files","updated_at":0,"uri":"/pypi-files/"},{"active":true,"base":"http://127.0.0.1:18996","client":{"command":"npm config set registry http://127.0.0.1:18087/npm/","label":"npm registry"},"configured":true,"default_base":"https://registrLine truncated
-131
View File
@@ -1,131 +0,0 @@
# ============================================================================
# cache-common.conf —— 各生态 cache location 共用的缓存/代理指令
#
# 由 conf/cache-routes.conf 在每个 location 内 `include`。
# **每个 location 自己指定** `proxy_cache <zone>`(各生态分库),本文件只放公共项。
#
# ---------------------------------------------------------------------------
# 与「静态上游版」相比的三处关键变化(配合 plugin-cache 的变量层)
# ---------------------------------------------------------------------------
#
# 1. `proxy_pass` 由字面量改为变量 `$cache_target`。上游地址与凭据因此来自
# 共享内存(`cx:<route>`,由管理台写),**改上游不用改 conf、不用 reload**。
# 代价:变量式 proxy_pass 不推导 Host、不追加 query —— 两者都由模块算好,
# 所以这里必须显式 `proxy_set_header Host $cache_host`。
#
# 2. `proxy_cache_key` 不再用 `$scheme$proxy_host$request_uri`(变量式下
# `$proxy_host` 不可靠),改用模块给的 `$cache_key`,并**并入方法 +
# Accept**(下面的注释详述为什么这是正确性问题,不是调优)。
#
# 3. 出站鉴权头改成三段式(`proxy_pass_request_headers on` + 抹掉三个
# 网关 Key 携带位 + 用 `$cache_auth` 下发)——见文件下半部分。
#
# ⚠️ 本文件**不得**使用 rewrite 模块的 `set` / `if`;生态判定由 plugin-cache
# 直读 `r->uri` 首段完成,不需要 `set $cache_ecosystem`。
# (`return` / `rewrite` 本身可用:本机构建与 ipass 生产都带 --with-pcre,
# rewrite 模块在编。它们只在 cache-routes.conf 里用。)
# ============================================================================
# ---------------------------------------------------------------------------
# 缓存键
# ---------------------------------------------------------------------------
#
# `$cache_key` = `<route>:<完整 URI + query>`,**不含任何下游凭据** —— 缓存因此是
# 「全站共享」的:同一个 go module / npm 包被 N 个账号拉,只回源一次。
# 这正是制品缓存的价值所在;鉴权在 access 层(谁能读),数据在共享层复用。
# 代价:任一有效 Key 都能命中别人拉过的制品 —— 对公开 registry 无碍,
# 若某路由指向**私有**上游,请理解这一点再启用。
#
# ★ query 必须进键(由模块的 `$cache_key` 负责,本行不要再自己拼 `$args`):
# npm 的 `?write=true`、docker 的 `?ns=`、go 的 `?go-get=1`、cargo 的
# `?archive=tar.gz` 都靠 query 区分实体。变量式 `proxy_pass` 下 `$uri`
# **不含** query,只按 `$uri` 做键会把 `/x?a` 与 `/x?b` 当成同一个资源,
# 把错的制品发给客户端(且第二次完全不回源,很难察觉)。
#
# ★ 为什么要并入 `$request_method` 与 `$http_accept`(这是正确性,不是调优):
#
# · `$request_method`:Docker 客户端对同一 URL 先 `HEAD` 看清单存不存在、
# 再 `GET` 取清单(registry 协议如此)。若两者共用一个键,一次 HEAD 的
# **空体**响应会被缓存下来并回给随后的 GET,客户端拿到 0 字节清单直接失败。
#
# · `$http_accept`:nginx 的 proxy_cache **不实现 Vary**(只能靠
# proxy_ignore_headers 把 Vary 忽略掉,无法参与分档)。而上游同一 URL
# 会因为 Accept 返回**不同实体**:
# - npm:`application/vnd.npm.install-v1+json` → 精简元数据,
# 缺省 → 完整元数据;
# - PyPI simple:`application/vnd.pypi.simple.v1+json` → JSON,
# `text/html` → HTML;
# - Docker:清单 v2 / OCI / v1 的 mediaType 由 Accept 偏好决定。
# 不并入 Accept 就会出现「发给 A 的实体被回给 B」的串档。代价是每个
# Accept 变体一个桶(现代客户端取值收敛,实际只多一个桶)。
#
# 注:刻意**不**再带 `$scheme`/`$proxy_host`:同一份制品无论客户端走 http
# 还是 https、走哪个域名进来,上游都是同一个,共享一份缓存更省盘也更省带宽。
proxy_cache_key $cache_key$request_method$http_accept;
# 只缓存完整 GET/HEAD(200/301/308);404 短缓存;206(range)/401 等不缓存,避免错片
proxy_cache_methods GET HEAD;
proxy_cache_valid 200 301 308 1d;
proxy_cache_valid 404 1m;
# 上游抖动时用陈旧副本兜底;并发同键只回源一次(防击穿)
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
proxy_cache_lock_age 10s;
proxy_cache_lock_timeout 30s;
# 带 If-None-Match / If-Modified-Since 回源校验,省带宽
proxy_cache_revalidate on;
# 加速缓存:不被上游 no-cache/Set-Cookie/Vary 拦下(镜像型缓存的标准取舍)
# ⚠️ Vary 被忽略是**必须**的——见上面缓存键的说明,我们已用 Accept 显式分档;
# 留着 Vary 反而会让 nginx 拒绝缓存这些响应。
proxy_ignore_headers Cache-Control Expires Set-Cookie Vary;
proxy_http_version 1.1;
# ---------------------------------------------------------------------------
# 出站请求头(镜像型:默认透传,但抹掉「本网关自己的 Key」)
# ---------------------------------------------------------------------------
#
# 与 LLM/API 代理的 allowlist 策略**刻意不同**:那些是无状态 API,客户端
# 头没有语义;而镜像必须原样带上客户端的 `Accept` / `Range` /
# `If-None-Match` / `User-Agent`,否则 docker 的 mediaType 协商、range 取
# 大 blob、条件请求全部失效。所以这里保持 `on`(nginx 默认),只在三个
# 「网关 Key 的携带位」上显式抹空。
#
# 为什么必须抹:`sk_` 是客户端访问**本网关**的身份(auth::downstream_key 认
# Authorization / x-api-key / api-key 三处)。原样透传给上游 = 把网关钥匙
# 递给上游厂商,对方可拿它反调本网关的其它路由刷额度。ipass 的 LLM 路径
# 记过同一个坑(宽松厂商把这缺陷掩盖成 200,换严格厂商才暴露成 401)。
proxy_pass_request_headers on;
proxy_set_header x-api-key "";
proxy_set_header api-key "";
# 变量形式 proxy_pass 不会推导 Host,必须显式设(上游多为 Cloudflare 前端,
# Host 不符会被直接拒)
proxy_set_header Host $cache_host;
# Authorization 三段式(由模块里的 `$cache_auth` 实现,语义见其文档):
# 配了上游凭据 → 下发配置值(管理员写全 `Bearer xxx` / `Basic yyy`)
# 没配 → 透传客户端值(Docker Hub 的短期 Bearer token 走这条)
# 客户端那把恰好是下行 sk_ → 丢弃
proxy_set_header Authorization $cache_auth;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
# registry 大 blob / 慢索引:放宽超时
proxy_read_timeout 300s;
proxy_send_timeout 300s;
# 变量式/直连上游为 HTTPS 时开 SNI;证书校验此阶段关闭(镜像多为公开源,
# 且目标主机来自管理台配置而非请求。要严格校验需另配 proxy_ssl_trusted_certificate)
proxy_ssl_server_name on;
proxy_ssl_protocols TLSv1.2 TLSv1.3;
proxy_ssl_verify off;
# 观测:每次响应带回缓存命中状态(ipass plugin-cache 亦从同一变量记账)
add_header X-Cache-Status $upstream_cache_status always;
add_header X-Cache-Eco $cache_eco always;
-177
View File
@@ -1,177 +0,0 @@
# ============================================================================
# cache-routes.conf —— 制品缓存网关的「server 内容」(在 server { } 里 include)
#
# 为什么单独成一个文件:这份路由要**两处复用**——
# * 明文入口 conf/server.cache.conf(本机 e2e / 内网直连)
# * TLS 入口 conf/tls/*.conf(对外,Docker 镜像加速必须走 https)
# 路由、鉴权开关、探针、管理台只写一份,两个入口不会漂。
#
# 路由约定:/<前缀>/<path> => <该 route 配置的上游>/<path>
# /go/ Go module proxy → 默认 proxy.golang.org
# /cargo/ crates.io 稀疏索引 → 默认 index.crates.io
# /cargo-dl/ .crate 包本体 → 默认 static.crates.io
# /pypi/ PyPI 简单索引/JSON → 默认 pypi.org
# /pypi-files/ wheel/sdist 包文件 → 默认 files.pythonhosted.org
# /npm/ npm registry → 默认 registry.npmjs.org
# /maven/ Maven Central → 默认 repo1.maven.org/maven2
# /v2/ Docker Registry v2 → 默认 registry-1.docker.io
#
# ⚠️ 上游地址**不写在本文件里**:全部来自 plugin-cache 的上游表(管理台
# 「制品缓存」页,落盘 data/cache-upstreams.json + 写穿共享内存)。
# 本文件只出现变量名。改上游 = 改管理台,不需要动 conf、不需要 reload。
#
# ⚠️ 每个带 `ipass_cache on` 的 location 都会在 access 阶段做闸门:
# 1) 该路由没配上游 → 503(不会让请求走到空 $cache_target 变成 500)
# 2) 统一 sk_ Key 鉴权(与 LLM / API 代理同一把)→ 401
# 3) 每分钟/每日配额 → 429
# 然后数据面才交给 nginx 原生 proxy_cache。
# ============================================================================
# ---------------- 管理台(多页静态资源,挂在 /admin/ 下)----------------
# 每页 head 里有 <base href="/admin/">,所以资源与 /api/ 都是绝对路径。
#
# **不发版不重启也能修好页面**:所有 HTML / CSS / JS 都加
# `Cache-Control: no-store`(expires -1 + add_header)。否则用户浏览器会
# 一直用发版前的旧 JS —— 典型表现是「后端加了字段,页面上看不到」。
#
# ⚠️ alias 刻意写**相对**路径 `www/`:nginx 把 root/alias 的相对路径解析到
# **prefix** 而不是 conf/,所以生产(prefix=/usr/local/nginx)得到
# /usr/local/nginx/www/,本地回归(prefix=tests/.../.run-prod)得到
# 测试自己的 www/。写死绝对路径则本机必 404。
location = / {
return 302 /admin;
}
location = /admin {
default_type text/html;
alias www/cache.html;
expires -1;
add_header Cache-Control "no-store" always;
}
# `/admin/`(末尾斜杠、后面无字符)不能直接 alias 到目录:nginx 会把
# index 拼成 `cache.htmlindex.html` 而 500。内部重定向到具体文件最干净。
location = /admin/ {
rewrite ^ /admin/cache.html last;
}
location /admin/ {
alias www/;
expires -1;
add_header Cache-Control "no-store" always;
}
# ---------------- API:管理态(登录会话)+ 账号态(sk_)----------------
# 由 plugin-cache 认领 /api/admin/cache* 与 /api/v1/cache*;
# 其余 /api/* 交给同一 gateway 里的其它插件(llm/apix/domain),互不干扰。
location /api/ {
ipass_api on;
}
# ---------------- 上游连通性探针(管理台「测试」按钮)----------------
# /api/admin/cache/test 校验 route 后由模块内部重定向到这里。
# 刻意**复用** $cache_target / $cache_host / $cache_auth —— 与真实转发
# 走同一套「拼上游 URL + 换凭据」逻辑,所以「测试通过」才等价于
# 「真实请求能到上游并带上凭据」;另写一套探针代码必然漂移。
#
# 为什么这里不写 `ipass_cache on`:内部重定向会重跑 access 阶段,而管理台
# 带的是**登录 Cookie、不是 sk_**,再鉴一次会把自己 401 掉。鉴权已在
# /api/admin/cache/test 那一跳用 Admin 守卫做过,这里是 internal,外部进不来。
#
# proxy_cache off:探针是「验连通」,不该用一次探测污染 1d 的制品缓存。
location /_cache_test/ {
internal;
proxy_cache off;
proxy_pass $cache_target;
proxy_http_version 1.1;
# 探针只验「拼目标 + 换凭据 + 到达上游」,请求头与请求体都不需要转发:
# * 方法由模块钉成 GET(见 plugin-cache api.rs 的 h_admin_test);
# * body 必须 off —— 管理台是用 POST 触发的,不 off 的话那 2 字节 `{}`
# 会连 Content-Length 一起发出去,上游等一个 GET 的 body、
# 或 keepalive 上残留半截请求体,表现为「测试时好时坏」。
proxy_pass_request_headers off;
proxy_pass_request_body off;
proxy_set_header Host $cache_host;
proxy_set_header Authorization $cache_auth;
proxy_set_header User-Agent $http_user_agent;
proxy_ssl_server_name on;
proxy_connect_timeout 5s;
proxy_send_timeout 15s;
proxy_read_timeout 15s;
}
# ---------------- Go module proxy ----------------
location /go/ {
ipass_cache on;
proxy_cache go;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- crates.io 稀疏索引 ----------------
location /cargo/ {
ipass_cache on;
proxy_cache cargo;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- .crate 包本体 ----------------
# ⚠️ crates.io 的 config.json 里 `dl` 字段给的是**绝对 URL**
# (https://static.crates.io/crates/...),cargo 默认直连上游域名、绕过本网关,
# 所以这个 location 只是**落点就绪**。要真正命中需二选一:
# (a) nginx 开 http_sub_module,用 sub_filter 把索引/`config.json` 里的
# 绝对 URL 改写成 https://<本网关>/cargo-dl;或
# (b) 网络层把 static.crates.io 指到本网关(内网 DNS + 证书)。
# 两者都归到 cargo 生态计数(plugin-cache 的 eco_of_route 已做映射)。
location /cargo-dl/ {
ipass_cache on;
proxy_cache cargo;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- PyPI 简单索引 / JSON ----------------
location /pypi/ {
ipass_cache on;
proxy_cache pypi;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- wheel/sdist 包文件 ----------------
# ⚠️ 与 /cargo-dl/ 同理:PyPI simple 页里的 href 是绝对 URL
# (https://files.pythonhosted.org/...),pip 默认直连,需 sub_filter 重写
# 或 DNS 指向才能命中本 location。归到 pypi 生态计数。
location /pypi-files/ {
ipass_cache on;
proxy_cache pypi;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- npm registry ----------------
location /npm/ {
ipass_cache on;
proxy_cache npm;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- Maven Central ----------------
location /maven/ {
ipass_cache on;
proxy_cache maven;
proxy_pass $cache_target;
include cache-common.conf;
}
# ---------------- Docker Registry v2 ----------------
# registry-mirrors 要求 https(见 conf/tls/),且**只适合公开镜像**:
# 缓存键不含用户身份,私有镜像会被串档(见 cache-common.conf 的说明)。
# 客户端先向 auth.docker.io 换短期 Bearer token 再带 Authorization 来拉,
# 该 token 由 cache-common.conf 的 $cache_auth 透传给上游(但网关自己的
# sk_ 会被剔除)。上游路径的 `/v2` 前缀由模块的 upstream_path_prefix 补回。
location /v2/ {
ipass_cache on;
proxy_cache docker;
proxy_pass $cache_target;
include cache-common.conf;
}
-99
View File
@@ -1,99 +0,0 @@
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/avif avif;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
font/woff woff;
font/woff2 woff2;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.apple.mpegurl m3u8;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/vnd.ms-excel xls;
application/vnd.ms-fontobject eot;
application/vnd.ms-powerpoint ppt;
application/vnd.oasis.opendocument.graphics odg;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation
pptx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx;
application/vnd.wap.wmlc wmlc;
application/wasm wasm;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/xspf+xml xspf;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}
-87
View File
@@ -1,87 +0,0 @@
# ============================================================================
# nginx.cache.conf —— 统一制品缓存网关 · 顶层配置
#
# vanilla nginx + ipass Rust 动态模块(plugin-cache)
#
# 本机回归:bash tests/cache/run.sh
# 生产部署:把本文件放到 nginx prefix 的 conf/ 下,同目录放
# server.cache.conf / cache-routes.conf / cache-common.conf /
# mime.types,启动即可;要对外 https 再加 conf/tls/*.conf。
#
# 数据面 = nginx 原生 proxy_cache(六生态各一个 zone,落本地盘);
# 管理面 = ipass plugin-cache(access 鉴权 + log 按生态记账 + 管理 API)。
#
# ⚠️ 上游地址/凭据**不在 conf 里**:全在 plugin-cache 的上游表
# (管理台「制品缓存」页 → data/cache-upstreams.json → 写穿共享内存)。
# conf 只出现 `$cache_*` 变量名,所以改上游不需要动 conf、不需要 reload。
#
# ⚠️ 因为 proxy_pass 是变量形式,`resolver` 是**必需**的:nginx 无法在配置
# 解析期把变量里的主机名解析成 IP,只能运行期查 DNS。缺 resolver 的表现是
# `/go/...` 一律 500(no resolver defined to resolve ...)。
#
# 本构建(build/build-nginx-ssl.sh)对齐 ipass 生产的 Dockerfile 参数:
# --with-pcre --with-http_ssl_module --with-http_realip_module
# 即 rewrite 模块与 SSL 都在编,所以本文件与 server.cache.conf /
# cache-routes.conf 里可以用 `return` / `rewrite` / `ssl_certificate`。
# ============================================================================
load_module /Users/rong/Desktop/cache/rust/target/debug/libipass_gateway.dylib;
worker_processes 1;
error_log /Users/rong/Desktop/cache/tests/cache/.run-cap/logs/error.log info;
pid /Users/rong/Desktop/cache/tests/cache/.run-cap/logs/nginx.pid;
# 初始管理员口令(不声明则会被 nginx 从环境中剥离)
env ADMIN_INIT_PASSWORD;
events {
worker_connections 4096;
}
http {
include mime.types;
default_type application/octet-stream; # 缺 Content-Type 时的兜底;
# API 响应由模块显式设 application/json
sendfile on;
keepalive_timeout 65;
# ========== 变量式上游的必需项 ==========
# proxy_pass $cache_target 里的主机名只能运行期解析(见文件头注释)。
# 两个国内解析器,30s 缓存;ipv6=off 避免拿到不可达的 AAAA 卡住连接。
resolver 223.5.5.5 119.29.29.29 valid=30s ipv6=off;
resolver_timeout 5s;
# ========== 可选 TLS(HTTPS)==========
# conf/tls/ 下放任意 *.conf(完整的 443/18098 server 块)即启用对应域名的
# HTTPS;目录为空或不存在时 include 空匹配,不影响启动。
# 模板见 conf/tls/cache.conf.example,说明见 conf/tls/README.md
include /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/tls/*.conf;
# ========== ipass 内核:共享内存 + 数据目录 ==========
# 一张共享内存表承载:上游表(cx:)/ 命中计数(cache:)/ 管理会话 / 限流窗口。
# 上游表条目数 = 路由数(个位数),10m 绰绰有余。
ipass_state state 10m;
ipass_data_dir /Users/rong/Desktop/cache/tests/cache/.run-cap/data;
ipass_audit_dir /Users/rong/Desktop/cache/tests/cache/.run-cap/audit;
# ========== 六类生态缓存区(本地盘热层)==========
# 各生态独立 zone,互不串档、独立上限;use_temp_path=off 省一次改名。
# ⚠️ cargo / pypi 各有两个 route 共用同一个 zone(索引 + 包本体):
# 这是刻意的——同一门语言的流量记在一起才看得懂,而 zone 内靠
# $cache_key 的 route 前缀天然分档,不会串。
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-cap/cache/go levels=1:2 keys_zone=go:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-cap/cache/cargo levels=1:2 keys_zone=cargo:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-cap/cache/pypi levels=1:2 keys_zone=pypi:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-cap/cache/npm levels=1:2 keys_zone=npm:100m max_size=1m inactive=1h use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-cap/cache/maven levels=1:2 keys_zone=maven:100m max_size=50g inactive=7d use_temp_path=off;
proxy_cache_path /Users/rong/Desktop/cache/tests/cache/.run-cap/cache/docker levels=1:2 keys_zone=docker:200m max_size=200g inactive=7d use_temp_path=off;
# 命中率日志(排障用;真实指标由 plugin-cache 的共享内存计数器提供)
log_format cache '$remote_addr [$time_local] "$request" $status '
'$body_bytes_sent cache=$upstream_cache_status eco=$cache_eco '
'uri=$uri rt=$request_time';
access_log /Users/rong/Desktop/cache/tests/cache/.run-cap/logs/cache.log cache;
include server.cache.conf;
}
-30
View File
@@ -1,30 +0,0 @@
# ============================================================================
# server.cache.conf —— 统一制品缓存 server(明文入口)
#
# 这是**内网 / 本机 e2e** 用的明文入口。对外的 https 入口在 conf/tls/*.conf
# (模板见 conf/tls/cache.conf.example)——两者 include 同一份 cache-routes.conf,
# 所以路由只此一份、不会漂。
#
# 为什么要拆两个入口:Docker 的 `registry-mirrors` 只接受 https(明文地址会
# 被 daemon 当成 insecure registry 拒绝),而本机自测/内网互调又不想折腾证书。
#
# 为什么本 server 不写 listen ... ssl:证书与域名属于部署环境(见 conf/tls/),
# 写死在这里会让「同一份 conf 换域名」变成改代码。
# ============================================================================
server {
listen 18087;
server_name _;
# registry 大 blob 直通,不设体积上限(0 = 不限制)
client_max_body_size 0;
# 请求体都是小 JSON / 空体,调大缓冲区让它留在内存里,避免刷临时文件
client_body_buffer_size 1m;
# 管理台 `location = /` 会 302 到 /admin。不关掉的话 nginx 默认写
# 绝对 URL + 实际 listen 端口,反代/端口映射后会把浏览器踢出链路。
absolute_redirect off;
port_in_redirect off;
include cache-routes.conf;
}
-26
View File
@@ -1,26 +0,0 @@
{
"items": {
"search": {
"supplier": "vendor-a",
"asset_id": "searxng-search",
"base": "http://127.0.0.1:18999",
"key": "ak_test_supplier_key",
"name": "SearXNG 免费搜索",
"desc": "服务端聚合 Google / Brave / Bing",
"params": ["q"],
"enabled": true,
"created_at": 1750000000
},
"offline": {
"supplier": "vendor-a",
"asset_id": "disabled-asset",
"base": "http://127.0.0.1:18999",
"key": "ak_test_supplier_key",
"name": "已停用的代理",
"desc": "enabled=false,热路径必须查不到",
"params": [],
"enabled": false,
"created_at": 1750000000
}
}
}
-10
View File
@@ -1,10 +0,0 @@
{
"items": {
"npm": { "base": "http://127.0.0.1:18996", "key": "",
"mode": "proxy", "name": "测试上游 npm", "desc": "假上游",
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 },
"maven": { "base": "http://127.0.0.1:18996", "key": "",
"mode": "proxy", "name": "测试上游 maven", "desc": "假上游",
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 }
}
}
-1
View File
@@ -1 +0,0 @@
[]
-1
View File
@@ -1 +0,0 @@
{"version":1,"saved_at":1789909586,"saved_at_text":"2026-09-20 21:06:26","keys":{}}
-34
View File
@@ -1,34 +0,0 @@
{
"openai": {
"base": "http://127.0.0.1:18999",
"models": ["gpt-4o", "gpt-4o-mini"],
"auth": "Bearer sk-UPSTREAM-REAL-SECRET",
"enabled": true,
"note": "本地靶机;auth 是占位值,不是真密钥",
"created_at": 1757500000
},
"other": {
"base": "http://127.0.0.1:18999/llm",
"models": ["claude-3-5-sonnet"],
"auth": "Bearer sk-OTHER-UPSTREAM",
"enabled": true,
"note": "不在 alice 白名单内;base 带路径,用于验证路径拼接与模型发现过滤",
"created_at": 1757500000
},
"downstream": {
"base": "http://127.0.0.1:18999",
"models": ["should-not-appear"],
"auth": "",
"enabled": false,
"note": "已停用,用于验证「停用即从共享内存摘除」→ 404,且其模型不应出现在模型发现里",
"created_at": 1757500000
},
"deepseeklike": {
"base": "http://127.0.0.1:18999/v1",
"models": ["ds-chat"],
"auth": "Bearer sk-DS-REAL",
"enabled": true,
"note": "base 自带 /v1(厂商文档的常见写法),用于验证版本段不重复拼接",
"created_at": 1757500000
}
}
-1
View File
@@ -1 +0,0 @@
{"admin":{"username":"admin","display_name":"","role":"admin","salt":"5a1b2c3d4e5f60718293a4b5c6d7e8f9","pwd_hash":"062b45d8f3cbef3d30464859355401bb37193868dc42eb941de86855416ab5e8","api_key":"sk_admin_0000000000000000000000000000000000000000000000ab","allowed_models":[],"llm_rpm":60,"llm_daily":0,"temp_grant_until":0,"created_at":1757500000},"alice":{"username":"alice","display_name":"爱丽丝","role":"user","salt":"00112233445566778899aabbccddeeff","pwd_hash":"00","api_key":"sk_alice_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","allowed_models":["openai"],"llm_rpm":60,"llm_daily":0,"temp_grant_until":0,"created_at":1757500000},"bob":{"username":"bob","display_name":"","role":"user","salt":"ffeeddccbbaa99887766554433221100","pwd_hash":"00","api_key":"sk_bob_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb","allowed_models":[],"llm_rpm":60,"llm_daily":0,"temp_grant_until":0,"created_at":1757500000},"carol":{"username":"carol","display_name":"","role":"user","salt":"112233445566778899aabbccddeeff00","pwd_hash":"00","api_key":"sk_carol_cccccccccccccccccccccccccccccccccccccccccccccc","allowed_models":[],"llm_rpm":2,"llm_daily":0,"temp_grant_until":0,"created_at":1757500000},"dave":{"username":"dave","display_name":"","role":"user","salt":"aabbccddeeff00112233445566778899","pwd_hash":"00","api_key":"sk_dave_dddddddddddddddddddddddddddddddddddddddddddddddd","allowed_models":[],"llm_rpm":0,"llm_daily":2,"temp_grant_until":0,"created_at":1757500000}}
-238
View File
@@ -1,238 +0,0 @@
127.0.0.1 [20/Sep/2026:18:25:09 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:18:25:09 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:18:25:09 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:25:49 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:18:25:49 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:18:25:49 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:25:50 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:25:52 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.012
127.0.0.1 [20/Sep/2026:18:25:52 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.012
127.0.0.1 [20/Sep/2026:18:25:52 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.010
127.0.0.1 [20/Sep/2026:18:25:52 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.011
127.0.0.1 [20/Sep/2026:18:25:53 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:25:54 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:25:54 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:25:54 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:25:54 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:25:54 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:25:54 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:25:56 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:25:56 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.009
127.0.0.1 [20/Sep/2026:18:25:56 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:18:25:57 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:29:48 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:18:29:48 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:18:29:48 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:50 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:51 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.019
127.0.0.1 [20/Sep/2026:18:29:51 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.019
127.0.0.1 [20/Sep/2026:18:29:51 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.017
127.0.0.1 [20/Sep/2026:18:29:51 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.010
127.0.0.1 [20/Sep/2026:18:29:52 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:53 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:54 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:29:54 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:29:55 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:29:55 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:29:55 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:29:56 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:29:57 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.019
127.0.0.1 [20/Sep/2026:18:29:57 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:18:29:58 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:40:29 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:18:40:29 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:18:40:29 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:40:31 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:40:33 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.016
127.0.0.1 [20/Sep/2026:18:40:33 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.015
127.0.0.1 [20/Sep/2026:18:40:33 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.016
127.0.0.1 [20/Sep/2026:18:40:33 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.017
127.0.0.1 [20/Sep/2026:18:40:34 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:40:35 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:40:36 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:40:36 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:40:36 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:40:36 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:40:36 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:40:38 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:40:39 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.017
127.0.0.1 [20/Sep/2026:18:40:39 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:18:40:40 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:43:00 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:18:43:00 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:18:43:00 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:43:02 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:43:03 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.009
127.0.0.1 [20/Sep/2026:18:43:03 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.010
127.0.0.1 [20/Sep/2026:18:43:03 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.010
127.0.0.1 [20/Sep/2026:18:43:03 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.010
127.0.0.1 [20/Sep/2026:18:43:04 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:43:05 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:43:05 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:43:05 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:43:05 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:43:05 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:43:05 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:18:43:07 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:18:43:07 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.010
127.0.0.1 [20/Sep/2026:18:43:07 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:18:43:08 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:58:07 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:20:58:07 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:20:58:07 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:58:09 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:58:11 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.016
127.0.0.1 [20/Sep/2026:20:58:11 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.017
127.0.0.1 [20/Sep/2026:20:58:11 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.015
127.0.0.1 [20/Sep/2026:20:58:11 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.022
127.0.0.1 [20/Sep/2026:20:58:12 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:58:14 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:58:15 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:58:15 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:58:15 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:58:15 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:58:16 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:58:18 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:58:19 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.013
127.0.0.1 [20/Sep/2026:20:58:19 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:20:58:20 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:58:23 +0800] "GET /npm/keep-a/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/keep-a/1 rt=0.013
127.0.0.1 [20/Sep/2026:20:58:23 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.021
127.0.0.1 [20/Sep/2026:20:58:23 +0800] "GET /maven/keep-m/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=maven uri=/maven/keep-m/1 rt=0.018
127.0.0.1 [20/Sep/2026:20:58:27 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1232 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:23 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:20:59:24 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:20:59:24 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:59:26 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:59:28 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.019
127.0.0.1 [20/Sep/2026:20:59:28 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.014
127.0.0.1 [20/Sep/2026:20:59:28 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.014
127.0.0.1 [20/Sep/2026:20:59:28 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.011
127.0.0.1 [20/Sep/2026:20:59:29 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:59:30 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:59:32 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:59:32 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:59:32 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:59:32 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:59:32 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:59:34 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:20:59:35 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.013
127.0.0.1 [20/Sep/2026:20:59:35 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:20:59:36 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:20:59:40 +0800] "GET /npm/keep-a/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/keep-a/1 rt=0.013
127.0.0.1 [20/Sep/2026:20:59:40 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.020
127.0.0.1 [20/Sep/2026:20:59:40 +0800] "GET /maven/keep-m/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=maven uri=/maven/keep-m/1 rt=0.019
127.0.0.1 [20/Sep/2026:20:59:44 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1232 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:48 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1220 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:53 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.018
127.0.0.1 [20/Sep/2026:20:59:53 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/dropme/1 rt=0.000
127.0.0.1 [20/Sep/2026:20:59:53 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1240 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:53 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1279 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:54 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 365 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:54 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1187 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:54 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 400 121 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:54 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:55 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:20:59:55 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:00:51 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:21:00:51 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:21:00:51 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:00:54 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:00:57 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.021
127.0.0.1 [20/Sep/2026:21:00:57 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.021
127.0.0.1 [20/Sep/2026:21:00:57 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.026
127.0.0.1 [20/Sep/2026:21:00:57 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.017
127.0.0.1 [20/Sep/2026:21:00:58 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:00:59 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:01:00 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:01:00 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:01:00 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:01:00 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:01:00 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:01:03 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:01:04 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.020
127.0.0.1 [20/Sep/2026:21:01:04 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:21:01:05 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:01:08 +0800] "GET /npm/keep-a/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/keep-a/1 rt=0.013
127.0.0.1 [20/Sep/2026:21:01:08 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.011
127.0.0.1 [20/Sep/2026:21:01:08 +0800] "GET /maven/keep-m/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=maven uri=/maven/keep-m/1 rt=0.054
127.0.0.1 [20/Sep/2026:21:01:11 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1232 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:15 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1220 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:18 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.014
127.0.0.1 [20/Sep/2026:21:01:18 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/dropme/1 rt=0.000
127.0.0.1 [20/Sep/2026:21:01:18 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1240 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:18 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1279 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:19 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 365 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:20 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1187 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:20 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 400 121 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:20 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:20 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:01:20 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:13 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:21:04:13 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:21:04:13 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:04:16 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:04:18 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.016
127.0.0.1 [20/Sep/2026:21:04:18 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.016
127.0.0.1 [20/Sep/2026:21:04:18 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.023
127.0.0.1 [20/Sep/2026:21:04:18 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.014
127.0.0.1 [20/Sep/2026:21:04:19 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:04:20 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:04:21 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:04:21 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:04:21 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:04:21 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:04:21 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:04:24 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:04:25 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.015
127.0.0.1 [20/Sep/2026:21:04:25 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:21:04:26 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:04:30 +0800] "GET /npm/keep-a/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/keep-a/1 rt=0.019
127.0.0.1 [20/Sep/2026:21:04:30 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.022
127.0.0.1 [20/Sep/2026:21:04:30 +0800] "GET /maven/keep-m/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=maven uri=/maven/keep-m/1 rt=0.014
127.0.0.1 [20/Sep/2026:21:04:34 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1232 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:39 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1220 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:43 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.023
127.0.0.1 [20/Sep/2026:21:04:43 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/dropme/1 rt=0.000
127.0.0.1 [20/Sep/2026:21:04:43 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1240 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:44 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1279 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:44 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 365 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:45 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1187 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:45 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 400 121 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:46 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:46 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:04:46 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:05:48 +0800] "GET / HTTP/1.1" 302 145 cache=- eco=- uri=/ rt=0.000
127.0.0.1 [20/Sep/2026:21:05:49 +0800] "POST /api/admin/login HTTP/1.1" 200 438 cache=- eco=- uri=/api/admin/login rt=0.000
127.0.0.1 [20/Sep/2026:21:05:49 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:05:52 +0800] "GET /api/admin/cache HTTP/1.1" 200 7426 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:05:54 +0800] "GET /npm/probe?bytes=1024 HTTP/1.1" 200 1024 cache=MISS eco=npm uri=/npm/probe rt=0.020
127.0.0.1 [20/Sep/2026:21:05:54 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.025
127.0.0.1 [20/Sep/2026:21:05:54 +0800] "GET /npm/cap/2?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/2 rt=0.018
127.0.0.1 [20/Sep/2026:21:05:54 +0800] "GET /npm/cap/3?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/3 rt=0.018
127.0.0.1 [20/Sep/2026:21:05:55 +0800] "GET /api/admin/cache HTTP/1.1" 200 7437 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:05:56 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7413 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:05:58 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:05:58 +0800] "POST /api/admin/cache/purge HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:05:58 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:05:58 +0800] "POST /api/admin/cache/purge HTTP/1.1" 400 64 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:05:58 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 242 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:06:01 +0800] "GET /api/admin/cache?scan=1 HTTP/1.1" 200 7403 cache=- eco=- uri=/api/admin/cache rt=0.000
127.0.0.1 [20/Sep/2026:21:06:02 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/cap/1 rt=0.031
127.0.0.1 [20/Sep/2026:21:06:02 +0800] "GET /npm/cap/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/cap/1 rt=0.000
127.0.0.1 [20/Sep/2026:21:06:03 +0800] "POST /api/admin/cache/purge HTTP/1.1" 200 846 cache=- eco=- uri=/api/admin/cache/purge rt=0.000
127.0.0.1 [20/Sep/2026:21:06:07 +0800] "GET /npm/keep-a/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/keep-a/1 rt=0.022
127.0.0.1 [20/Sep/2026:21:06:07 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.018
127.0.0.1 [20/Sep/2026:21:06:07 +0800] "GET /maven/keep-m/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=maven uri=/maven/keep-m/1 rt=0.021
127.0.0.1 [20/Sep/2026:21:06:12 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1232 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:16 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1220 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:21 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=MISS eco=npm uri=/npm/dropme/1 rt=0.018
127.0.0.1 [20/Sep/2026:21:06:21 +0800] "GET /npm/dropme/1?bytes=204800 HTTP/1.1" 200 204800 cache=HIT eco=npm uri=/npm/dropme/1 rt=0.000
127.0.0.1 [20/Sep/2026:21:06:21 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1240 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:22 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1279 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:22 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 365 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:23 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 200 1187 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:23 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 400 121 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:23 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 400 133 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:23 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
127.0.0.1 [20/Sep/2026:21:06:23 +0800] "POST /api/admin/cache/invalidate HTTP/1.1" 401 66 cache=- eco=- uri=/api/admin/cache/invalidate rt=0.000
-720
View File
@@ -1,720 +0,0 @@
2026/09/20 18:25:08 [notice] 54361#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 18:25:08 [notice] 54361#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:25:08 [notice] 54361#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 18:25:09 [notice] 54362#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:25:09 [notice] 54362#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:25:09 [notice] 54362#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 18:25:09 [notice] 54362#0: using the "kqueue" event method
2026/09/20 18:25:09 [notice] 54362#0: nginx/1.30.4
2026/09/20 18:25:09 [notice] 54362#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 18:25:09 [notice] 54362#0: OS: Darwin 21.6.0
2026/09/20 18:25:09 [notice] 54362#0: hw.ncpu: 4
2026/09/20 18:25:09 [notice] 54362#0: net.inet.tcp.sendspace: 131072
2026/09/20 18:25:09 [notice] 54362#0: kern.ipc.somaxconn: 128
2026/09/20 18:25:09 [notice] 54362#0: hw.cachelinesize: 64
2026/09/20 18:25:09 [notice] 54362#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 18:25:09 [notice] 54363#0: start worker processes
2026/09/20 18:25:09 [notice] 54363#0: start worker process 54364
2026/09/20 18:25:09 [notice] 54363#0: start cache manager process 54365
2026/09/20 18:25:09 [notice] 54363#0: start cache loader process 54366
2026/09/20 18:25:09 [notice] 54363#0: signal 23 (SIGIO) received from 54365
2026/09/20 18:25:09 [notice] 54363#0: signal 23 (SIGIO) received from 54364
2026/09/20 18:25:09 [info] 54364#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:09 [notice] 54364#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 18:25:09 [info] 54364#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:09 [info] 54364#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:11 [notice] 54363#0: signal 15 (SIGTERM) received from 54199, exiting
2026/09/20 18:25:11 [notice] 54366#0: exiting
2026/09/20 18:25:11 [notice] 54365#0: exiting
2026/09/20 18:25:11 [notice] 54364#0: exiting
2026/09/20 18:25:11 [notice] 54363#0: signal 23 (SIGIO) received from 54365
2026/09/20 18:25:11 [notice] 54363#0: signal 23 (SIGIO) received
2026/09/20 18:25:11 [info] 54364#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 18:25:11 [notice] 54364#0: exit
2026/09/20 18:25:11 [notice] 54363#0: signal 20 (SIGCHLD) received from 54366
2026/09/20 18:25:11 [notice] 54363#0: cache loader process 54366 exited with code 0
2026/09/20 18:25:11 [notice] 54363#0: signal 23 (SIGIO) received
2026/09/20 18:25:11 [notice] 54363#0: signal 20 (SIGCHLD) received from 54365
2026/09/20 18:25:11 [notice] 54363#0: cache manager process 54365 exited with code 0
2026/09/20 18:25:11 [notice] 54363#0: signal 23 (SIGIO) received
2026/09/20 18:25:11 [notice] 54363#0: signal 23 (SIGIO) received from 54364
2026/09/20 18:25:11 [notice] 54363#0: signal 20 (SIGCHLD) received from 54364
2026/09/20 18:25:11 [notice] 54363#0: worker process 54364 exited with code 0
2026/09/20 18:25:11 [notice] 54363#0: exit
2026/09/20 18:25:49 [notice] 54626#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 18:25:49 [notice] 54626#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:25:49 [notice] 54626#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 18:25:49 [notice] 54627#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:25:49 [notice] 54627#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:25:49 [notice] 54627#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 18:25:49 [notice] 54627#0: using the "kqueue" event method
2026/09/20 18:25:49 [notice] 54627#0: nginx/1.30.4
2026/09/20 18:25:49 [notice] 54627#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 18:25:49 [notice] 54627#0: OS: Darwin 21.6.0
2026/09/20 18:25:49 [notice] 54627#0: hw.ncpu: 4
2026/09/20 18:25:49 [notice] 54627#0: net.inet.tcp.sendspace: 131072
2026/09/20 18:25:49 [notice] 54627#0: kern.ipc.somaxconn: 128
2026/09/20 18:25:49 [notice] 54627#0: hw.cachelinesize: 64
2026/09/20 18:25:49 [notice] 54627#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 18:25:49 [notice] 54628#0: start worker processes
2026/09/20 18:25:49 [notice] 54628#0: start worker process 54629
2026/09/20 18:25:49 [notice] 54629#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:25:49 [notice] 54628#0: start cache manager process 54630
2026/09/20 18:25:49 [notice] 54628#0: start cache loader process 54632
2026/09/20 18:25:49 [notice] 54628#0: signal 23 (SIGIO) received
2026/09/20 18:25:49 [notice] 54630#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:25:49 [notice] 54628#0: signal 23 (SIGIO) received from 54630
2026/09/20 18:25:49 [notice] 54632#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:25:49 [info] 54629#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:49 [notice] 54629#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 18:25:49 [info] 54629#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:49 [info] 54629#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:50 [info] 54629#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:52 [info] 54629#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:52 [info] 54629#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:52 [info] 54629#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:52 [info] 54629#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:53 [info] 54629#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:54 [info] 54629#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:54 [info] 54629#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:54 [info] 54629#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:54 [info] 54629#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:54 [info] 54629#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:54 [notice] 54629#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 18:25:54 [info] 54629#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:56 [info] 54629#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:56 [info] 54629#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:56 [info] 54629#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:57 [notice] 54629#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 18:25:57 [info] 54629#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:25:59 [notice] 54628#0: signal 15 (SIGTERM) received from 54478, exiting
2026/09/20 18:25:59 [notice] 54630#0: exiting
2026/09/20 18:25:59 [notice] 54629#0: exiting
2026/09/20 18:25:59 [notice] 54632#0: exiting
2026/09/20 18:25:59 [notice] 54628#0: signal 23 (SIGIO) received from 54632
2026/09/20 18:25:59 [info] 54629#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 18:25:59 [notice] 54629#0: exit
2026/09/20 18:25:59 [notice] 54628#0: signal 20 (SIGCHLD) received from 54632
2026/09/20 18:25:59 [notice] 54628#0: cache loader process 54632 exited with code 0
2026/09/20 18:25:59 [notice] 54628#0: cache manager process 54630 exited with code 0
2026/09/20 18:25:59 [notice] 54628#0: signal 23 (SIGIO) received
2026/09/20 18:25:59 [notice] 54628#0: signal 20 (SIGCHLD) received from 54630
2026/09/20 18:25:59 [notice] 54628#0: signal 23 (SIGIO) received from 54629
2026/09/20 18:25:59 [notice] 54628#0: signal 20 (SIGCHLD) received from 54629
2026/09/20 18:25:59 [notice] 54628#0: worker process 54629 exited with code 0
2026/09/20 18:25:59 [notice] 54628#0: exit
2026/09/20 18:29:48 [notice] 56642#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 18:29:48 [notice] 56642#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:29:48 [notice] 56642#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 18:29:48 [notice] 56643#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:29:48 [notice] 56643#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:29:48 [notice] 56643#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 18:29:48 [notice] 56643#0: using the "kqueue" event method
2026/09/20 18:29:48 [notice] 56643#0: nginx/1.30.4
2026/09/20 18:29:48 [notice] 56643#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 18:29:48 [notice] 56643#0: OS: Darwin 21.6.0
2026/09/20 18:29:48 [notice] 56643#0: hw.ncpu: 4
2026/09/20 18:29:48 [notice] 56643#0: net.inet.tcp.sendspace: 131072
2026/09/20 18:29:48 [notice] 56643#0: kern.ipc.somaxconn: 128
2026/09/20 18:29:48 [notice] 56643#0: hw.cachelinesize: 64
2026/09/20 18:29:48 [notice] 56643#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 18:29:48 [notice] 56644#0: start worker processes
2026/09/20 18:29:48 [notice] 56644#0: start worker process 56646
2026/09/20 18:29:48 [notice] 56644#0: start cache manager process 56647
2026/09/20 18:29:48 [notice] 56644#0: start cache loader process 56648
2026/09/20 18:29:48 [notice] 56646#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:29:48 [notice] 56644#0: signal 23 (SIGIO) received from 56646
2026/09/20 18:29:48 [notice] 56647#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:29:48 [notice] 56644#0: signal 23 (SIGIO) received from 56647
2026/09/20 18:29:48 [notice] 56648#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:29:48 [info] 56646#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:48 [notice] 56646#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 18:29:48 [info] 56646#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:48 [info] 56646#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:50 [info] 56646#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:51 [info] 56646#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:51 [info] 56646#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:51 [info] 56646#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:51 [info] 56646#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:52 [info] 56646#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:53 [info] 56646#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:54 [info] 56646#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:54 [info] 56646#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:55 [info] 56646#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:55 [info] 56646#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:55 [notice] 56646#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 18:29:55 [info] 56646#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:56 [info] 56646#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:57 [info] 56646#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:57 [info] 56646#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:29:58 [notice] 56646#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 18:29:58 [info] 56646#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:30:01 [notice] 56644#0: signal 15 (SIGTERM) received from 56490, exiting
2026/09/20 18:30:01 [notice] 56646#0: exiting
2026/09/20 18:30:01 [notice] 56644#0: signal 23 (SIGIO) received from 56646
2026/09/20 18:30:01 [notice] 56647#0: exiting
2026/09/20 18:30:01 [notice] 56648#0: exiting
2026/09/20 18:30:01 [notice] 56644#0: signal 23 (SIGIO) received
2026/09/20 18:30:01 [info] 56646#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 18:30:01 [notice] 56644#0: signal 20 (SIGCHLD) received from 56648
2026/09/20 18:30:01 [notice] 56644#0: cache loader process 56648 exited with code 0
2026/09/20 18:30:01 [notice] 56644#0: cache manager process 56647 exited with code 0
2026/09/20 18:30:01 [notice] 56644#0: signal 23 (SIGIO) received
2026/09/20 18:30:01 [notice] 56644#0: signal 20 (SIGCHLD) received from 56647
2026/09/20 18:30:01 [notice] 56646#0: exit
2026/09/20 18:30:01 [notice] 56644#0: signal 23 (SIGIO) received from 56646
2026/09/20 18:30:01 [notice] 56644#0: signal 20 (SIGCHLD) received from 56646
2026/09/20 18:30:01 [notice] 56644#0: worker process 56646 exited with code 0
2026/09/20 18:30:01 [notice] 56644#0: exit
2026/09/20 18:40:29 [notice] 58898#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 18:40:29 [notice] 58898#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:40:29 [notice] 58898#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 18:40:29 [notice] 58899#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:40:29 [notice] 58899#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:40:29 [notice] 58899#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 18:40:29 [notice] 58899#0: using the "kqueue" event method
2026/09/20 18:40:29 [notice] 58899#0: nginx/1.30.4
2026/09/20 18:40:29 [notice] 58899#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 18:40:29 [notice] 58899#0: OS: Darwin 21.6.0
2026/09/20 18:40:29 [notice] 58899#0: hw.ncpu: 4
2026/09/20 18:40:29 [notice] 58899#0: net.inet.tcp.sendspace: 131072
2026/09/20 18:40:29 [notice] 58899#0: kern.ipc.somaxconn: 128
2026/09/20 18:40:29 [notice] 58899#0: hw.cachelinesize: 64
2026/09/20 18:40:29 [notice] 58899#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 18:40:29 [notice] 58900#0: start worker processes
2026/09/20 18:40:29 [notice] 58900#0: start worker process 58901
2026/09/20 18:40:29 [notice] 58900#0: start cache manager process 58902
2026/09/20 18:40:29 [notice] 58900#0: start cache loader process 58903
2026/09/20 18:40:29 [notice] 58902#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:40:29 [notice] 58900#0: signal 23 (SIGIO) received from 58902
2026/09/20 18:40:29 [notice] 58901#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:40:29 [notice] 58900#0: signal 23 (SIGIO) received from 58901
2026/09/20 18:40:29 [notice] 58903#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:40:29 [info] 58901#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:29 [notice] 58901#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 18:40:29 [info] 58901#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:29 [info] 58901#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:31 [info] 58901#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:33 [info] 58901#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:33 [info] 58901#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:33 [info] 58901#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:33 [info] 58901#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:34 [info] 58901#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:35 [info] 58901#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:36 [info] 58901#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:36 [info] 58901#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:36 [info] 58901#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:36 [info] 58901#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:36 [notice] 58901#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 18:40:36 [info] 58901#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:38 [info] 58901#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:39 [info] 58901#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:39 [info] 58901#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:40 [notice] 58901#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 18:40:40 [info] 58901#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:40:44 [notice] 58900#0: signal 15 (SIGTERM) received from 58747, exiting
2026/09/20 18:40:44 [notice] 58901#0: exiting
2026/09/20 18:40:44 [notice] 58900#0: signal 23 (SIGIO) received from 58902
2026/09/20 18:40:44 [notice] 58902#0: exiting
2026/09/20 18:40:44 [notice] 58903#0: exiting
2026/09/20 18:40:44 [notice] 58900#0: signal 23 (SIGIO) received
2026/09/20 18:40:44 [notice] 58900#0: signal 20 (SIGCHLD) received from 58902
2026/09/20 18:40:44 [notice] 58900#0: cache loader process 58903 exited with code 0
2026/09/20 18:40:44 [notice] 58900#0: cache manager process 58902 exited with code 0
2026/09/20 18:40:44 [notice] 58900#0: signal 23 (SIGIO) received
2026/09/20 18:40:44 [notice] 58900#0: signal 20 (SIGCHLD) received
2026/09/20 18:40:44 [info] 58901#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 18:40:44 [notice] 58901#0: exit
2026/09/20 18:40:44 [notice] 58900#0: signal 23 (SIGIO) received from 58901
2026/09/20 18:40:44 [notice] 58900#0: signal 20 (SIGCHLD) received from 58901
2026/09/20 18:40:44 [notice] 58900#0: worker process 58901 exited with code 0
2026/09/20 18:40:44 [notice] 58900#0: exit
2026/09/20 18:43:00 [notice] 59539#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 18:43:00 [notice] 59539#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:43:00 [notice] 59539#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 18:43:00 [notice] 59540#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 18:43:00 [notice] 59540#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 18:43:00 [notice] 59540#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 18:43:00 [notice] 59540#0: using the "kqueue" event method
2026/09/20 18:43:00 [notice] 59540#0: nginx/1.30.4
2026/09/20 18:43:00 [notice] 59540#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 18:43:00 [notice] 59540#0: OS: Darwin 21.6.0
2026/09/20 18:43:00 [notice] 59540#0: hw.ncpu: 4
2026/09/20 18:43:00 [notice] 59540#0: net.inet.tcp.sendspace: 131072
2026/09/20 18:43:00 [notice] 59540#0: kern.ipc.somaxconn: 128
2026/09/20 18:43:00 [notice] 59540#0: hw.cachelinesize: 64
2026/09/20 18:43:00 [notice] 59540#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 18:43:00 [notice] 59541#0: start worker processes
2026/09/20 18:43:00 [notice] 59541#0: start worker process 59542
2026/09/20 18:43:00 [notice] 59541#0: start cache manager process 59543
2026/09/20 18:43:00 [notice] 59541#0: start cache loader process 59544
2026/09/20 18:43:00 [notice] 59543#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:43:00 [notice] 59541#0: signal 23 (SIGIO) received from 59543
2026/09/20 18:43:00 [notice] 59542#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:43:00 [notice] 59541#0: signal 23 (SIGIO) received from 59542
2026/09/20 18:43:00 [notice] 59544#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 18:43:00 [info] 59542#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:00 [notice] 59542#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 18:43:00 [info] 59542#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:00 [info] 59542#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:02 [info] 59542#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:03 [info] 59542#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:03 [info] 59542#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:03 [info] 59542#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:03 [info] 59542#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:04 [info] 59542#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:05 [info] 59542#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:05 [info] 59542#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:05 [info] 59542#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:05 [info] 59542#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:05 [info] 59542#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:05 [notice] 59542#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 18:43:05 [info] 59542#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:07 [info] 59542#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:07 [info] 59542#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:07 [info] 59542#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:08 [notice] 59542#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 18:43:08 [info] 59542#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 18:43:10 [notice] 59541#0: signal 15 (SIGTERM) received from 59388, exiting
2026/09/20 18:43:10 [notice] 59543#0: exiting
2026/09/20 18:43:10 [notice] 59542#0: exiting
2026/09/20 18:43:10 [notice] 59544#0: exiting
2026/09/20 18:43:10 [notice] 59541#0: signal 23 (SIGIO) received from 59544
2026/09/20 18:43:10 [info] 59542#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 18:43:10 [notice] 59542#0: exit
2026/09/20 18:43:10 [notice] 59541#0: signal 20 (SIGCHLD) received from 59544
2026/09/20 18:43:10 [notice] 59541#0: cache loader process 59544 exited with code 0
2026/09/20 18:43:10 [notice] 59541#0: cache manager process 59543 exited with code 0
2026/09/20 18:43:10 [notice] 59541#0: signal 23 (SIGIO) received
2026/09/20 18:43:10 [notice] 59541#0: signal 20 (SIGCHLD) received from 59543
2026/09/20 18:43:10 [notice] 59541#0: signal 23 (SIGIO) received from 59542
2026/09/20 18:43:10 [notice] 59541#0: signal 23 (SIGIO) received
2026/09/20 18:43:10 [notice] 59541#0: signal 20 (SIGCHLD) received from 59542
2026/09/20 18:43:10 [notice] 59541#0: worker process 59542 exited with code 0
2026/09/20 18:43:10 [notice] 59541#0: exit
2026/09/20 20:58:06 [notice] 62412#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 20:58:06 [notice] 62412#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 20:58:06 [notice] 62412#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 20:58:07 [notice] 62413#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 20:58:07 [notice] 62413#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 20:58:07 [notice] 62413#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 20:58:07 [notice] 62413#0: using the "kqueue" event method
2026/09/20 20:58:07 [notice] 62413#0: nginx/1.30.4
2026/09/20 20:58:07 [notice] 62413#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 20:58:07 [notice] 62413#0: OS: Darwin 21.6.0
2026/09/20 20:58:07 [notice] 62413#0: hw.ncpu: 4
2026/09/20 20:58:07 [notice] 62413#0: net.inet.tcp.sendspace: 131072
2026/09/20 20:58:07 [notice] 62413#0: kern.ipc.somaxconn: 128
2026/09/20 20:58:07 [notice] 62413#0: hw.cachelinesize: 64
2026/09/20 20:58:07 [notice] 62413#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 20:58:07 [notice] 62414#0: start worker processes
2026/09/20 20:58:07 [notice] 62414#0: start worker process 62415
2026/09/20 20:58:07 [notice] 62414#0: start cache manager process 62416
2026/09/20 20:58:07 [notice] 62414#0: start cache loader process 62417
2026/09/20 20:58:07 [notice] 62416#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 20:58:07 [notice] 62417#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 20:58:07 [notice] 62414#0: signal 23 (SIGIO) received from 62416
2026/09/20 20:58:07 [notice] 62415#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 20:58:07 [notice] 62414#0: signal 23 (SIGIO) received from 62415
2026/09/20 20:58:07 [info] 62415#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:07 [notice] 62415#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 20:58:07 [info] 62415#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:07 [info] 62415#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:09 [info] 62415#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:11 [info] 62415#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:11 [info] 62415#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:11 [info] 62415#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:11 [info] 62415#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:12 [info] 62415#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:14 [info] 62415#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:15 [info] 62415#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:15 [info] 62415#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:15 [info] 62415#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:15 [info] 62415#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:16 [notice] 62415#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 20:58:16 [info] 62415#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:18 [info] 62415#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:19 [info] 62415#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:19 [info] 62415#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:20 [notice] 62415#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 20:58:20 [info] 62415#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:23 [info] 62415#0: *25 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:23 [info] 62415#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:23 [info] 62415#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:27 [crit] 62416#0: unlink() "/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/npm/e/bd/808c8ce74bf94df103653a7d95bc5bde" failed (2: No such file or directory)
2026/09/20 20:58:27 [notice] 62415#0: [cache] 预览 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 20:58:27 [info] 62415#0: *31 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:58:31 [notice] 62414#0: signal 15 (SIGTERM) received from 62261, exiting
2026/09/20 20:58:31 [notice] 62415#0: exiting
2026/09/20 20:58:31 [notice] 62417#0: exiting
2026/09/20 20:58:31 [notice] 62414#0: signal 23 (SIGIO) received from 62415
2026/09/20 20:58:31 [notice] 62416#0: exiting
2026/09/20 20:58:31 [notice] 62414#0: signal 23 (SIGIO) received
2026/09/20 20:58:31 [info] 62415#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 20:58:31 [notice] 62415#0: exit
2026/09/20 20:58:31 [notice] 62414#0: signal 20 (SIGCHLD) received from 62416
2026/09/20 20:58:31 [notice] 62414#0: cache loader process 62417 exited with code 0
2026/09/20 20:58:31 [notice] 62414#0: cache manager process 62416 exited with code 0
2026/09/20 20:58:31 [notice] 62414#0: worker process 62415 exited with code 0
2026/09/20 20:58:31 [notice] 62414#0: exit
2026/09/20 20:59:23 [notice] 62871#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 20:59:23 [notice] 62871#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 20:59:23 [notice] 62871#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 20:59:23 [notice] 62872#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 20:59:23 [notice] 62872#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 20:59:23 [notice] 62872#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 20:59:23 [notice] 62872#0: using the "kqueue" event method
2026/09/20 20:59:23 [notice] 62872#0: nginx/1.30.4
2026/09/20 20:59:23 [notice] 62872#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 20:59:23 [notice] 62872#0: OS: Darwin 21.6.0
2026/09/20 20:59:23 [notice] 62872#0: hw.ncpu: 4
2026/09/20 20:59:23 [notice] 62872#0: net.inet.tcp.sendspace: 131072
2026/09/20 20:59:23 [notice] 62872#0: kern.ipc.somaxconn: 128
2026/09/20 20:59:23 [notice] 62872#0: hw.cachelinesize: 64
2026/09/20 20:59:23 [notice] 62872#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 20:59:23 [notice] 62873#0: start worker processes
2026/09/20 20:59:23 [notice] 62873#0: start worker process 62874
2026/09/20 20:59:23 [notice] 62873#0: start cache manager process 62875
2026/09/20 20:59:23 [notice] 62874#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 20:59:23 [notice] 62873#0: start cache loader process 62877
2026/09/20 20:59:23 [notice] 62873#0: signal 23 (SIGIO) received
2026/09/20 20:59:23 [notice] 62875#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 20:59:23 [notice] 62873#0: signal 23 (SIGIO) received from 62874
2026/09/20 20:59:23 [notice] 62873#0: signal 23 (SIGIO) received from 62875
2026/09/20 20:59:23 [notice] 62877#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 20:59:23 [info] 62874#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:24 [notice] 62874#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 20:59:24 [info] 62874#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:24 [info] 62874#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:26 [info] 62874#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:28 [info] 62874#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:28 [info] 62874#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:28 [info] 62874#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:28 [info] 62874#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:29 [info] 62874#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:30 [info] 62874#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:32 [info] 62874#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:32 [info] 62874#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:32 [info] 62874#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:32 [info] 62874#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:32 [notice] 62874#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 20:59:32 [info] 62874#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:34 [info] 62874#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:35 [info] 62874#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:35 [info] 62874#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:36 [notice] 62874#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 20:59:36 [info] 62874#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:40 [info] 62874#0: *25 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:40 [info] 62874#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:40 [info] 62874#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:43 [crit] 62875#0: unlink() "/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/npm/e/bd/808c8ce74bf94df103653a7d95bc5bde" failed (2: No such file or directory)
2026/09/20 20:59:44 [notice] 62874#0: [cache] 预览 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 20:59:44 [info] 62874#0: *31 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:48 [notice] 62874#0: [cache] 失效 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 1 个(只删文件,目录保留)
2026/09/20 20:59:48 [info] 62874#0: *32 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:53 [info] 62874#0: *33 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:53 [info] 62874#0: *35 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:53 [notice] 62874#0: [cache] 预览 cache selector=all match="npm:/npm/keep*":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 20:59:53 [info] 62874#0: *36 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:53 [notice] 62874#0: [cache] 预览 cache selector=all match="*keep*":命中 2 个 / 410782 字节,删除 0 个(只删文件,目录保留)
2026/09/20 20:59:53 [info] 62874#0: *37 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:54 [notice] 62874#0: [cache] 预览 cache selector=npm match="keep-m":命中 0 个 / 0 字节,删除 0 个(只删文件,目录保留)
2026/09/20 20:59:54 [info] 62874#0: *38 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:54 [notice] 62874#0: [cache] 预览 cache selector=all match="nosuchartifact":命中 0 个 / 0 字节,删除 0 个(只删文件,目录保留)
2026/09/20 20:59:54 [info] 62874#0: *39 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:54 [info] 62874#0: *40 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:54 [info] 62874#0: *41 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:55 [info] 62874#0: *42 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:55 [info] 62874#0: *43 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 20:59:57 [notice] 62873#0: signal 15 (SIGTERM) received from 62718, exiting
2026/09/20 20:59:57 [notice] 62873#0: signal 23 (SIGIO) received from 62875
2026/09/20 20:59:57 [notice] 62875#0: exiting
2026/09/20 20:59:57 [notice] 62877#0: exiting
2026/09/20 20:59:57 [notice] 62873#0: signal 23 (SIGIO) received from 62877
2026/09/20 20:59:57 [notice] 62874#0: exiting
2026/09/20 20:59:57 [info] 62874#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 20:59:57 [notice] 62874#0: exit
2026/09/20 20:59:57 [notice] 62873#0: signal 20 (SIGCHLD) received from 62877
2026/09/20 20:59:57 [notice] 62873#0: cache loader process 62877 exited with code 0
2026/09/20 20:59:57 [notice] 62873#0: cache manager process 62875 exited with code 0
2026/09/20 20:59:57 [notice] 62873#0: signal 23 (SIGIO) received
2026/09/20 20:59:57 [notice] 62873#0: signal 23 (SIGIO) received from 62874
2026/09/20 20:59:57 [notice] 62873#0: signal 20 (SIGCHLD) received from 62874
2026/09/20 20:59:57 [notice] 62873#0: worker process 62874 exited with code 0
2026/09/20 20:59:57 [notice] 62873#0: exit
2026/09/20 21:00:51 [notice] 63406#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 21:00:51 [notice] 63406#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:00:51 [notice] 63406#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 21:00:51 [notice] 63407#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 21:00:51 [notice] 63407#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:00:51 [notice] 63407#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 21:00:51 [notice] 63407#0: using the "kqueue" event method
2026/09/20 21:00:51 [notice] 63407#0: nginx/1.30.4
2026/09/20 21:00:51 [notice] 63407#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 21:00:51 [notice] 63407#0: OS: Darwin 21.6.0
2026/09/20 21:00:51 [notice] 63407#0: hw.ncpu: 4
2026/09/20 21:00:51 [notice] 63407#0: net.inet.tcp.sendspace: 131072
2026/09/20 21:00:51 [notice] 63407#0: kern.ipc.somaxconn: 128
2026/09/20 21:00:51 [notice] 63407#0: hw.cachelinesize: 64
2026/09/20 21:00:51 [notice] 63407#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 21:00:51 [notice] 63409#0: start worker processes
2026/09/20 21:00:51 [notice] 63409#0: start worker process 63410
2026/09/20 21:00:51 [notice] 63409#0: start cache manager process 63411
2026/09/20 21:00:51 [notice] 63409#0: start cache loader process 63413
2026/09/20 21:00:51 [notice] 63410#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:00:51 [notice] 63409#0: signal 23 (SIGIO) received from 63410
2026/09/20 21:00:51 [notice] 63411#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:00:51 [notice] 63409#0: signal 23 (SIGIO) received from 63411
2026/09/20 21:00:51 [notice] 63413#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:00:51 [info] 63410#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:51 [notice] 63410#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 21:00:51 [info] 63410#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:51 [info] 63410#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:54 [info] 63410#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:57 [info] 63410#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:57 [info] 63410#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:57 [info] 63410#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:57 [info] 63410#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:58 [info] 63410#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:00:59 [info] 63410#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:00 [info] 63410#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:00 [info] 63410#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:00 [info] 63410#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:00 [info] 63410#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:00 [notice] 63410#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 21:01:00 [info] 63410#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:03 [info] 63410#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:04 [info] 63410#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:04 [info] 63410#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:05 [notice] 63410#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 21:01:05 [info] 63410#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:08 [info] 63410#0: *25 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:08 [info] 63410#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:08 [info] 63410#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:11 [crit] 63411#0: unlink() "/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/npm/e/bd/808c8ce74bf94df103653a7d95bc5bde" failed (2: No such file or directory)
2026/09/20 21:01:11 [notice] 63410#0: [cache] 预览 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:01:11 [info] 63410#0: *31 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:15 [notice] 63410#0: [cache] 失效 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 1 个(只删文件,目录保留)
2026/09/20 21:01:15 [info] 63410#0: *32 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:18 [info] 63410#0: *33 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:18 [info] 63410#0: *35 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:18 [notice] 63410#0: [cache] 预览 cache selector=all match="npm:/npm/keep*":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:01:18 [info] 63410#0: *36 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:18 [notice] 63410#0: [cache] 预览 cache selector=all match="*keep*":命中 2 个 / 410782 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:01:18 [info] 63410#0: *37 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:19 [notice] 63410#0: [cache] 预览 cache selector=npm match="keep-m":命中 0 个 / 0 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:01:19 [info] 63410#0: *38 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:20 [notice] 63410#0: [cache] 预览 cache selector=all match="nosuchartifact":命中 0 个 / 0 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:01:20 [info] 63410#0: *39 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:20 [info] 63410#0: *40 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:20 [info] 63410#0: *41 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:20 [info] 63410#0: *42 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:20 [info] 63410#0: *43 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:01:22 [notice] 63409#0: signal 15 (SIGTERM) received from 63239, exiting
2026/09/20 21:01:22 [notice] 63410#0: exiting
2026/09/20 21:01:22 [notice] 63409#0: signal 23 (SIGIO) received from 63410
2026/09/20 21:01:22 [notice] 63411#0: exiting
2026/09/20 21:01:22 [notice] 63409#0: signal 23 (SIGIO) received
2026/09/20 21:01:22 [notice] 63413#0: exiting
2026/09/20 21:01:22 [notice] 63409#0: signal 23 (SIGIO) received from 63413
2026/09/20 21:01:23 [notice] 63409#0: signal 20 (SIGCHLD) received from 63413
2026/09/20 21:01:23 [notice] 63409#0: cache loader process 63413 exited with code 0
2026/09/20 21:01:23 [notice] 63409#0: signal 23 (SIGIO) received
2026/09/20 21:01:23 [notice] 63409#0: signal 20 (SIGCHLD) received from 63411
2026/09/20 21:01:23 [notice] 63409#0: cache manager process 63411 exited with code 0
2026/09/20 21:01:23 [notice] 63409#0: signal 23 (SIGIO) received
2026/09/20 21:01:22 [info] 63410#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 21:01:22 [notice] 63410#0: exit
2026/09/20 21:01:23 [notice] 63409#0: signal 23 (SIGIO) received from 63410
2026/09/20 21:01:23 [notice] 63409#0: signal 20 (SIGCHLD) received from 63410
2026/09/20 21:01:23 [notice] 63409#0: worker process 63410 exited with code 0
2026/09/20 21:01:23 [notice] 63409#0: exit
2026/09/20 21:04:13 [notice] 65308#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 21:04:13 [notice] 65308#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:04:13 [notice] 65308#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 21:04:13 [notice] 65309#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 21:04:13 [notice] 65309#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:04:13 [notice] 65309#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 21:04:13 [notice] 65309#0: using the "kqueue" event method
2026/09/20 21:04:13 [notice] 65309#0: nginx/1.30.4
2026/09/20 21:04:13 [notice] 65309#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 21:04:13 [notice] 65309#0: OS: Darwin 21.6.0
2026/09/20 21:04:13 [notice] 65309#0: hw.ncpu: 4
2026/09/20 21:04:13 [notice] 65309#0: net.inet.tcp.sendspace: 131072
2026/09/20 21:04:13 [notice] 65309#0: kern.ipc.somaxconn: 128
2026/09/20 21:04:13 [notice] 65309#0: hw.cachelinesize: 64
2026/09/20 21:04:13 [notice] 65309#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 21:04:13 [notice] 65310#0: start worker processes
2026/09/20 21:04:13 [notice] 65310#0: start worker process 65311
2026/09/20 21:04:13 [notice] 65310#0: start cache manager process 65312
2026/09/20 21:04:13 [notice] 65310#0: start cache loader process 65313
2026/09/20 21:04:13 [notice] 65312#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:04:13 [notice] 65310#0: signal 23 (SIGIO) received from 65312
2026/09/20 21:04:13 [notice] 65313#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:04:13 [notice] 65311#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:04:13 [notice] 65310#0: signal 23 (SIGIO) received from 65311
2026/09/20 21:04:13 [info] 65311#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:13 [notice] 65311#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 21:04:13 [info] 65311#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:13 [info] 65311#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:16 [info] 65311#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:18 [info] 65311#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:18 [info] 65311#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:18 [info] 65311#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:18 [info] 65311#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:19 [info] 65311#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:20 [info] 65311#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:21 [info] 65311#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:21 [info] 65311#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:21 [info] 65311#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:21 [info] 65311#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:21 [notice] 65311#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 21:04:21 [info] 65311#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:24 [info] 65311#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:25 [info] 65311#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:25 [info] 65311#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:26 [notice] 65311#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 21:04:26 [info] 65311#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:30 [info] 65311#0: *25 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:30 [info] 65311#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:30 [info] 65311#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:33 [crit] 65312#0: unlink() "/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/npm/e/bd/808c8ce74bf94df103653a7d95bc5bde" failed (2: No such file or directory)
2026/09/20 21:04:34 [notice] 65311#0: [cache] 预览 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:04:34 [info] 65311#0: *31 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:39 [notice] 65311#0: [cache] 失效 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 1 个(只删文件,目录保留)
2026/09/20 21:04:39 [info] 65311#0: *32 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:43 [info] 65311#0: *33 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:43 [info] 65311#0: *35 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:43 [notice] 65311#0: [cache] 预览 cache selector=all match="npm:/npm/keep*":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:04:43 [info] 65311#0: *36 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:44 [notice] 65311#0: [cache] 预览 cache selector=all match="*keep*":命中 2 个 / 410782 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:04:44 [info] 65311#0: *37 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:44 [notice] 65311#0: [cache] 预览 cache selector=npm match="keep-m":命中 0 个 / 0 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:04:44 [info] 65311#0: *38 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:45 [notice] 65311#0: [cache] 预览 cache selector=all match="nosuchartifact":命中 0 个 / 0 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:04:45 [info] 65311#0: *39 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:45 [info] 65311#0: *40 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:46 [info] 65311#0: *41 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:46 [info] 65311#0: *42 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:46 [info] 65311#0: *43 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:04:49 [notice] 65310#0: signal 15 (SIGTERM) received from 65155, exiting
2026/09/20 21:04:49 [notice] 65311#0: exiting
2026/09/20 21:04:49 [notice] 65312#0: exiting
2026/09/20 21:04:49 [notice] 65313#0: exiting
2026/09/20 21:04:49 [notice] 65310#0: signal 23 (SIGIO) received from 65313
2026/09/20 21:04:49 [notice] 65310#0: signal 20 (SIGCHLD) received from 65312
2026/09/20 21:04:49 [notice] 65310#0: cache manager process 65312 exited with code 0
2026/09/20 21:04:49 [notice] 65310#0: signal 23 (SIGIO) received
2026/09/20 21:04:49 [notice] 65310#0: signal 20 (SIGCHLD) received from 65313
2026/09/20 21:04:49 [notice] 65310#0: cache loader process 65313 exited with code 0
2026/09/20 21:04:49 [notice] 65310#0: signal 23 (SIGIO) received
2026/09/20 21:04:49 [info] 65311#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 21:04:49 [notice] 65311#0: exit
2026/09/20 21:04:49 [notice] 65310#0: signal 20 (SIGCHLD) received from 65311
2026/09/20 21:04:49 [notice] 65310#0: worker process 65311 exited with code 0
2026/09/20 21:04:49 [notice] 65310#0: signal 23 (SIGIO) received from 65311
2026/09/20 21:04:49 [notice] 65310#0: exit
2026/09/20 21:05:48 [notice] 65921#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
nginx: the configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf syntax is ok
2026/09/20 21:05:48 [notice] 65921#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:05:48 [notice] 65921#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
nginx: configuration file /Users/rong/Desktop/cache/tests/cache/.run-cap/conf/nginx.cache.conf test is successful
2026/09/20 21:05:48 [notice] 65922#0: [cache] 容量区已识别 6 个:["go", "cargo", "pypi", "npm", "maven", "docker"]
2026/09/20 21:05:48 [notice] 65922#0: [ipass] 共享内存已装载 0 条转发映射
2026/09/20 21:05:48 [notice] 65922#0: [ipass] 已装载 5 个账号 Key、3 个 LLM 上游、1 个 API 代理、2 个缓存上游
2026/09/20 21:05:48 [notice] 65922#0: using the "kqueue" event method
2026/09/20 21:05:48 [notice] 65922#0: nginx/1.30.4
2026/09/20 21:05:48 [notice] 65922#0: built by clang 14.0.0 (clang-1400.0.29.202)
2026/09/20 21:05:48 [notice] 65922#0: OS: Darwin 21.6.0
2026/09/20 21:05:48 [notice] 65922#0: hw.ncpu: 4
2026/09/20 21:05:48 [notice] 65922#0: net.inet.tcp.sendspace: 131072
2026/09/20 21:05:48 [notice] 65922#0: kern.ipc.somaxconn: 128
2026/09/20 21:05:48 [notice] 65922#0: hw.cachelinesize: 64
2026/09/20 21:05:48 [notice] 65922#0: getrlimit(RLIMIT_NOFILE): 1048575:9223372036854775807
2026/09/20 21:05:48 [notice] 65923#0: start worker processes
2026/09/20 21:05:48 [notice] 65923#0: start worker process 65924
2026/09/20 21:05:48 [notice] 65923#0: start cache manager process 65925
2026/09/20 21:05:48 [notice] 65923#0: start cache loader process 65926
2026/09/20 21:05:48 [notice] 65925#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:05:48 [notice] 65923#0: signal 23 (SIGIO) received from 65925
2026/09/20 21:05:48 [notice] 65924#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:05:48 [notice] 65923#0: signal 23 (SIGIO) received from 65924
2026/09/20 21:05:48 [notice] 65926#0: [stats] 已从快照恢复 0/0 键(/Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json)
2026/09/20 21:05:48 [info] 65924#0: *1 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:49 [notice] 65924#0: [api] 管理员登录 user=admin client=127.0.0.1
2026/09/20 21:05:49 [info] 65924#0: *2 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:49 [info] 65924#0: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:52 [info] 65924#0: *4 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:54 [info] 65924#0: *5 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:54 [info] 65924#0: *7 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:54 [info] 65924#0: *9 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:54 [info] 65924#0: *11 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:55 [info] 65924#0: *13 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:56 [info] 65924#0: *14 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:58 [info] 65924#0: *15 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:58 [info] 65924#0: *16 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:58 [info] 65924#0: *17 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:58 [info] 65924#0: *18 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:05:58 [notice] 65924#0: [cache] 清理缓存 selector=npm 删除 4 个文件 / 617762 字节(只删文件,目录保留)
2026/09/20 21:05:58 [info] 65924#0: *19 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:01 [info] 65924#0: *20 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:02 [info] 65924#0: *21 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:02 [info] 65924#0: *23 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:03 [notice] 65924#0: [cache] 清理缓存 selector=all 删除 1 个文件 / 205386 字节(只删文件,目录保留)
2026/09/20 21:06:03 [info] 65924#0: *24 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:07 [info] 65924#0: *25 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:07 [info] 65924#0: *27 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:07 [info] 65924#0: *29 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:08 [crit] 65925#0: unlink() "/Users/rong/Desktop/cache/tests/cache/.run-cap/cache/npm/e/bd/808c8ce74bf94df103653a7d95bc5bde" failed (2: No such file or directory)
2026/09/20 21:06:12 [notice] 65924#0: [cache] 预览 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:06:12 [info] 65924#0: *31 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:16 [notice] 65924#0: [cache] 失效 cache selector=all match="dropme":命中 1 个 / 205389 字节,删除 1 个(只删文件,目录保留)
2026/09/20 21:06:16 [info] 65924#0: *32 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:21 [info] 65924#0: *33 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:21 [info] 65924#0: *35 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:21 [notice] 65924#0: [cache] 预览 cache selector=all match="npm:/npm/keep*":命中 1 个 / 205389 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:06:21 [info] 65924#0: *36 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:22 [notice] 65924#0: [cache] 预览 cache selector=all match="*keep*":命中 2 个 / 410782 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:06:22 [info] 65924#0: *37 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:22 [notice] 65924#0: [cache] 预览 cache selector=npm match="keep-m":命中 0 个 / 0 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:06:22 [info] 65924#0: *38 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:23 [notice] 65924#0: [cache] 预览 cache selector=all match="nosuchartifact":命中 0 个 / 0 字节,删除 0 个(只删文件,目录保留)
2026/09/20 21:06:23 [info] 65924#0: *39 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:23 [info] 65924#0: *40 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:23 [info] 65924#0: *41 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:23 [info] 65924#0: *42 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:23 [info] 65924#0: *43 kevent() reported that client 127.0.0.1 closed keepalive connection
2026/09/20 21:06:26 [notice] 65923#0: signal 15 (SIGTERM) received from 65769, exiting
2026/09/20 21:06:26 [notice] 65923#0: signal 23 (SIGIO) received from 65925
2026/09/20 21:06:26 [notice] 65924#0: exiting
2026/09/20 21:06:26 [notice] 65926#0: exiting
2026/09/20 21:06:26 [notice] 65925#0: exiting
2026/09/20 21:06:26 [notice] 65923#0: signal 23 (SIGIO) received
2026/09/20 21:06:26 [notice] 65923#0: signal 20 (SIGCHLD) received from 65926
2026/09/20 21:06:26 [notice] 65923#0: cache loader process 65926 exited with code 0
2026/09/20 21:06:26 [notice] 65923#0: cache manager process 65925 exited with code 0
2026/09/20 21:06:26 [notice] 65923#0: signal 23 (SIGIO) received
2026/09/20 21:06:26 [info] 65924#0: [stats] 落盘 0 键(83 B,worker-exit)-> /Users/rong/Desktop/cache/tests/cache/.run-cap/data/llm-stats.json
2026/09/20 21:06:26 [notice] 65924#0: exit
2026/09/20 21:06:26 [notice] 65923#0: signal 20 (SIGCHLD) received from 65924
2026/09/20 21:06:26 [notice] 65923#0: worker process 65924 exited with code 0
2026/09/20 21:06:26 [notice] 65923#0: signal 23 (SIGIO) received from 65924
2026/09/20 21:06:26 [notice] 65923#0: exit
-1
View File
@@ -1 +0,0 @@
661
-10
View File
@@ -1,10 +0,0 @@
mock upstream on 18996
mock upstream on 18996
mock upstream on 18996
mock upstream on 18996
mock upstream on 18996
mock upstream on 18996
mock upstream on 18996
mock upstream on 18996
mock upstream on 18996
mock upstream on 18996
-10
View File
@@ -1,10 +0,0 @@
GET / auth=-
GET /probe?bytes=1024 auth=-
GET /cap/1?bytes=204800 auth=-
GET /cap/2?bytes=204800 auth=-
GET /cap/3?bytes=204800 auth=-
GET /cap/1?bytes=204800 auth=-
GET /keep-a/1?bytes=204800 auth=-
GET /dropme/1?bytes=204800 auth=-
GET /keep-m/1?bytes=204800 auth=-
GET /dropme/1?bytes=204800 auth=-
-1
View File
@@ -1 +0,0 @@
65914
-1
View File
@@ -1 +0,0 @@
/Users/rong/Desktop/cache/www
-221
View File
@@ -1,221 +0,0 @@
#!/bin/bash
# ============================================================================
# 本机回归 · 统一入口
#
# bash tests/run.sh # 跑全部(域名网关 + LLM 代理)
# bash tests/run.sh gateway # 只跑域名网关(90 条断言)
# bash tests/run.sh llm # 只跑 LLM 代理
#
# 前置:本机 nginx 已编译好(默认 /Users/xs/Desktop/workspace/iPass/build/ngxbuild/nginx-1.30.4/objs/nginx),
# Rust 模块由本脚本自动 cargo build。
# 可覆盖:NGINX_BIN / NGINX_BUILD_DIR / PY
#
# ⚠️ 全程使用 tests/.run/ 下的独立 data 目录,**绝不碰生产 data/**。
# nginx.conf 由 .in 模板渲染(占位符 @MODULE@ / @REPO@ / @RUN@),
# 所以 nginx 跑在哪个路径、模块编到哪都不写死。
# ============================================================================
set -uo pipefail
HERE=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
REPO=$(cd "$HERE/.." && pwd)
NGINX_BIN=${NGINX_BIN:-/Users/xs/Desktop/workspace/iPass/build/ngxbuild/nginx-1.30.4/objs/nginx}
NGINX_BUILD_DIR=${NGINX_BUILD_DIR:-/Users/xs/Desktop/workspace/iPass/build/ngxbuild/nginx-1.30.4/objs}
MODULE="$REPO/rust/target/debug/libipass_gateway.dylib"
# python3:优先隔离的托管运行时,其次系统的
PY=${PY:-}
if [ -z "$PY" ]; then
for c in /Users/xs/.workbuddy/binaries/python/versions/3.13.12/bin/python3 python3; do
if command -v "$c" >/dev/null 2>&1; then PY=$c; break; fi
done
fi
[ -n "$PY" ] || { echo "错误:找不到 python3" >&2; exit 1; }
# ---------------------------------------------------------------------------
# 工具
# ---------------------------------------------------------------------------
# sed 替换串里的 & 和 | 需要转义,否则路径里的这些字符会炸
esc() { printf '%s' "$1" | sed -e 's/[&|]/\\&/g'; }
# render <模板> <输出> <RUN 目录>
render() {
sed -e "s|@MODULE@|$(esc "$MODULE")|g" \
-e "s|@REPO@|$(esc "$REPO")|g" \
-e "s|@RUN@|$(esc "$3")|g" "$1" > "$2"
}
ngx_stop() {
if [ -f "$1/nginx.conf" ]; then
"$NGINX_BIN" -p "$1" -c "$1/nginx.conf" -s stop >/dev/null 2>&1
fi
sleep 1
return 0
}
ngx_start() { "$NGINX_BIN" -p "$1" -c "$1/nginx.conf"; }
# wait_tcp <host> <port>
wait_tcp() {
local i
for i in $(seq 1 60); do
"$PY" -c 'import socket, sys
s = socket.socket(); s.settimeout(0.2)
try:
s.connect((sys.argv[1], int(sys.argv[2]))); sys.exit(0)
except Exception:
sys.exit(1)' "$1" "$2" && return 0
sleep 0.1
done
return 1
}
build() {
echo "── 编译 Rust 模块 ──"
( cd "$REPO/rust" && NGINX_BUILD_DIR="$NGINX_BUILD_DIR" cargo build ) || return 1
}
# ---------------------------------------------------------------------------
# 套件:域名网关
# ---------------------------------------------------------------------------
suite_gateway() {
local RUN="$HERE/.run/gateway"
mkdir -p "$RUN/data" "$RUN/logs"
render "$HERE/gateway/nginx.conf.in" "$RUN/nginx.conf" "$RUN"
ngx_stop "$RUN"
# 夹具覆盖式播种:保证每次跑起点一致(合成数据,非生产 data)。
# 用 cp 而非 rm —— 批量删除会被安全钩子拦截,导致脏数据残留、断言失败。
cp "$HERE/gateway/fixtures/users.json" "$RUN/data/users.json"
cp "$HERE/gateway/fixtures/domains.json" "$RUN/data/domains.json"
: > "$RUN/cookie.jar"
: > "$RUN/logs/error.log"
echo "── 启动网关(18080 转发 / 18081 靶机 / 18082 管理)──"
if ! ngx_start "$RUN"; then
echo "nginx 启动失败,见 $RUN/logs/error.log" >&2; return 1
fi
wait_tcp 127.0.0.1 18082 || { echo "管理端口未就绪" >&2; ngx_stop "$RUN"; return 1; }
echo
ADMIN="http://localhost:18082" GW="http://127.0.0.1:18080" \
JAR="$RUN/cookie.jar" RUN="$RUN" PY="$PY" \
bash "$HERE/gateway/e2e.sh"
local rc=$?
ngx_stop "$RUN"
return $rc
}
# ---------------------------------------------------------------------------
# 套件:LLM 代理
# ---------------------------------------------------------------------------
suite_llm() {
local RUN="$HERE/.run/llm"
local up_pid=""
mkdir -p "$RUN/data" "$RUN/logs"
# 夹具覆盖式播种,保证每次跑的起点一致(这两个文件是合成数据,不是生产 data)
cp "$HERE/llm/fixtures/users.json" "$RUN/data/users.json"
cp "$HERE/llm/fixtures/llm-upstreams.json" "$RUN/data/llm-upstreams.json"
cp "$HERE/llm/fixtures/api-proxies.json" "$RUN/data/api-proxies.json"
rm -f "$RUN/upstream.log"
render "$HERE/llm/nginx.conf.in" "$RUN/nginx.conf" "$RUN"
# TLS 夹具:本机 nginx 带 http_ssl_module 且有 openssl 时,生成自签证书 +
# 渲染 443 server(@RUN@/tls/llm.conf,nginx.conf.in 已 include 该目录)。
# 任一条件不满足就留空目录 → include 空匹配,HTTPS 组断言自动跳过。
HAVE_TLS=0
mkdir -p "$RUN/tls"
rm -f "$RUN"/tls/*.pem "$RUN"/tls/*.conf
if command -v openssl >/dev/null 2>&1 \
&& "$NGINX_BIN" -V 2>&1 | grep -q http_ssl_module; then
if openssl req -x509 -newkey rsa:2048 -nodes -days 30 \
-subj "/CN=llm.local" -addext "subjectAltName=DNS:llm.local" \
-keyout "$RUN/tls/key.pem" -out "$RUN/tls/cert.pem" >/dev/null 2>&1; then
render "$HERE/llm/tls.conf.in" "$RUN/tls/llm.conf" "$RUN"
HAVE_TLS=1
fi
fi
ngx_stop "$RUN"
: > "$RUN/logs/error.log"
echo "── 启动假上游(18999)与 LLM 网关(18090)──"
# 清掉**本项目自己**残留的靶机进程(如上次调试用 run_in_background 起的)。
# 否则新靶机 bind 失败、旧靶机继续服务但日志写到别的目录——
# 表现就是「请求全 200 但 UP_LOG 全空」,25 条断言集体假失败(2026-09-12 实测)。
pkill -f "tests/llm/upstream.py" 2>/dev/null
for i in $(seq 1 20); do
"$PY" -c 'import socket, sys
s = socket.socket(); s.settimeout(0.2)
try:
s.connect(("127.0.0.1", 18999)); sys.exit(0)
except Exception:
sys.exit(1)' && sleep 0.2 || break
done
UPSTREAM_LOG="$RUN/upstream.log" UPSTREAM_PORT=18999 "$PY" "$HERE/llm/upstream.py" \
>"$RUN/logs/upstream.out" 2>&1 &
up_pid=$!
# wait_tcp 可能被残留进程「骗绿」——必须确认**本进程**还活着(bind 失败会立刻退出)
if ! kill -0 "$up_pid" 2>/dev/null; then
echo "假上游启动即退出(多半是 18999 被非本项目的进程占用),见 $RUN/logs/upstream.out" >&2
return 1
fi
if ! wait_tcp 127.0.0.1 18999; then
echo "假上游未就绪,见 $RUN/logs/upstream.out" >&2
kill "$up_pid" 2>/dev/null; return 1
fi
if ! ngx_start "$RUN"; then
echo "nginx 启动失败,见 $RUN/logs/error.log" >&2
kill "$up_pid" 2>/dev/null; return 1
fi
if ! wait_tcp 127.0.0.1 18090; then
echo "LLM 端口未就绪" >&2
ngx_stop "$RUN"; kill "$up_pid" 2>/dev/null; return 1
fi
wait_tcp 127.0.0.1 18091 || { echo "管理端口未就绪" >&2; ngx_stop "$RUN"; kill "$up_pid" 2>/dev/null; return 1; }
echo
GW="http://127.0.0.1:18090" API="http://127.0.0.1:18091" \
UPSTREAM_LOG="$RUN/upstream.log" RUN="$RUN" PY="$PY" HAVE_TLS="$HAVE_TLS" \
bash "$HERE/llm/e2e.sh"
local rc=$?
ngx_stop "$RUN"
kill "$up_pid" 2>/dev/null
wait "$up_pid" 2>/dev/null
return $rc
}
# ---------------------------------------------------------------------------
# main
# ---------------------------------------------------------------------------
WHICH=${1:-all}
rc=0
rc2=0
build || { echo "编译失败,先修 Rust 再跑回归" >&2; exit 1; }
echo
case "$WHICH" in
gateway) suite_gateway; rc=$? ;;
llm) suite_llm; rc=$? ;;
all|"")
suite_gateway; rc=$?
echo
suite_llm; rc2=$?
[ "$rc2" -ne 0 ] && rc=$rc2
;;
*) echo "用法: bash tests/run.sh [gateway|llm|all]" >&2; exit 2 ;;
esac
echo
if [ "$rc" -eq 0 ]; then
echo "全部通过"
else
echo "有断言失败(退出码 ${rc:-0})"
fi
exit $rc