feat: preserve k3s proxy stage evidence
This commit is contained in:
@@ -31,11 +31,11 @@ bun scripts/cli.ts platform-infra egress-proxy k3s-build-benchmark --targets D60
|
||||
bun scripts/cli.ts platform-infra egress-proxy k3s-build-benchmark \
|
||||
--targets D601,D518 --profile real-deps-500m --dry-run
|
||||
|
||||
# 启动 benchmark:fire-and-forget,之后用 status/logs/traffic 短轮询。
|
||||
# 启动 benchmark:fire-and-forget,同时启动 stage recorder 持久化阶段流量证据。
|
||||
bun scripts/cli.ts platform-infra egress-proxy k3s-build-benchmark \
|
||||
--targets D601,D518 --profile real-deps-500m --confirm
|
||||
|
||||
# 状态表:看 APK/NPM/GO/GIT_MIRROR/REAL_DEPS、failure family 和 proxyserver 采样。
|
||||
# 状态表:看 APK/NPM/GO/GIT_MIRROR/REAL_DEPS、STAGE_PROXY、failure family 和可选即时采样。
|
||||
bun scripts/cli.ts platform-infra egress-proxy k3s-build-benchmark status \
|
||||
--targets D601,D518 --profile real-deps-500m --traffic-sample-seconds 15
|
||||
|
||||
@@ -52,7 +52,7 @@ bun scripts/cli.ts platform-infra egress-proxy k3s-build-benchmark cleanup \
|
||||
--targets D601,D518 --profile real-deps-500m --confirm
|
||||
```
|
||||
|
||||
D601/D518 结果必须分表记录:`STATE`、Job/run、duration、`APK/NPM/GO/GIT_MIRROR/REAL_DEPS`、`TRAFFIC_WINDOW`、`TRAFFIC_RATE`、`PROXY_CUM`、`TOP_CLIENT`、`TOP_DEST` 和 `FAILURE`。D518 通过不代表 D601 通过;D601 只证明 k3s/containerd 走到 proxy 也不等于性能达标。未完成 500MiB+ 的真实 k3s image pull + apk/npm/go/git mirror 测试前,不关闭对应 issue,不合并标记为等待运行面验收的 PR。
|
||||
D601/D518 结果必须分表记录:`STATE`、Job/run、duration、`APK/NPM/GO/GIT_MIRROR/REAL_DEPS`、`STAGE_PROXY`、`STAGE_PROXY_EVIDENCE`、`TRAFFIC_WINDOW`、`TRAFFIC_RATE`、`PROXY_CUM`、`TOP_CLIENT`、`TOP_DEST` 和 `FAILURE`。D518 通过不代表 D601 通过;D601 只证明 k3s/containerd 走到 proxy 也不等于性能达标。未完成 500MiB+ 的真实 k3s image pull + apk/npm/go/git mirror 测试前,不关闭对应 issue,不合并标记为等待运行面验收的 PR。
|
||||
|
||||
## Egress Proxy 运行面修复入口
|
||||
|
||||
@@ -70,6 +70,7 @@ D601 若需要让 `sub2api-egress-proxy` 绕开 pod overlay,可在 YAML 中显
|
||||
- `TOP_CLIENT=10.42.0.1` 且 `TOP_DEST=registry-1.docker.io:443`:k3s/containerd image pull 已从 proxyserver 视角可见。
|
||||
- `TOP_DEST=dl-cdn.alpinelinux.org:443`:Pod 内 `apk` 阶段已走 proxy。
|
||||
- `registry.npmjs.org:443`、`proxy.golang.org:443`、`github.com:443`:分别对应 `npm install`、Go module 拉取和 Git mirror clone/sync。
|
||||
- `STAGE_PROXY_EVIDENCE` 是 Job annotation 中持久化的阶段证据;最终 `succeeded` 后仍应保留 apk/npm/go/git-mirror 各阶段 top destination、window bytes、max rate 和 proxy cumulative。`TRAFFIC_*` 列只是 status 命令即时采样。
|
||||
- `image-pull` failure 表示还卡在 kubelet/containerd 拉镜像;`apk-download`、`npm-download`、`go-download`、`git-mirror` 分别表示 Pod 内依赖阶段失败。
|
||||
- proxy 窗口 `0 B/s` 但 active cumulative 增长很慢时,按性能不达标处理;先清理 Job,再继续查上游,不要让慢速 benchmark 长时间占用资源。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user