20260324 完成和routinator对齐snapshot delta replay correctness一致
This commit is contained in:
@@ -53,7 +53,7 @@ python3 scripts/payload_replay/multi_rir_case_info.py \
|
||||
|
||||
- 从 multi-RIR bundle 中选择指定 RIR 的 snapshot/base 与 delta 输入
|
||||
- 读取该 RIR 的 Routinator `base-replay` / `delta-replay` timing 基线
|
||||
- 使用该 RIR `timings/base-replay.json` 与 `timings/delta-replay.json` 的 `startedAt` 作为 replay `--validation-time`
|
||||
- 优先使用 `base-locks.json.validationTime` 与 `locks-delta.json.validationTime` 作为 replay `--validation-time`;若缺失才回退到 `timings/base-replay.json` 与 `timings/delta-replay.json` 的 `startedAt`
|
||||
- 在 `target/live/multi_rir_replay_runs/<rir>/` 下生成:
|
||||
- snapshot replay 产物
|
||||
- delta replay 产物
|
||||
@@ -65,6 +65,40 @@ python3 scripts/payload_replay/multi_rir_case_info.py \
|
||||
|
||||
也可以通过 `BUNDLE_ROOT` 覆盖。
|
||||
|
||||
## `run_apnic_snapshot_replay_profile.sh`
|
||||
|
||||
基于 multi-RIR bundle 中的 APNIC snapshot 输入,使用当前 replay 主流程执行一次带 `--analyze` 和 `--profile-cpu` 的离线 profile。
|
||||
|
||||
```bash
|
||||
./scripts/payload_replay/run_apnic_snapshot_replay_profile.sh
|
||||
```
|
||||
|
||||
作用:
|
||||
|
||||
- 使用 `APNIC` 的 snapshot/base replay 输入
|
||||
- 自动开启:
|
||||
- `--analyze`
|
||||
- `--profile-cpu`
|
||||
- 自动记录:
|
||||
- replay wall-clock 时长
|
||||
- Routinator baseline (`base-replay`)
|
||||
- analyze 目录路径
|
||||
- 生成:
|
||||
- `report.json`
|
||||
- `run.log`
|
||||
- `meta.json`
|
||||
- `summary.md`
|
||||
- 以及 `target/live/analyze/<timestamp>/` 下的:
|
||||
- `timing.json`
|
||||
- `flamegraph.svg`
|
||||
- `pprof.pb.gz`
|
||||
|
||||
支持:
|
||||
|
||||
- `DRY_RUN=1`:只打印命令,不真正执行
|
||||
- `MAX_DEPTH` / `MAX_INSTANCES`:用于限定 replay 范围
|
||||
- `PROFILE_RUN_ROOT`:覆盖 wrapper 产物输出目录
|
||||
|
||||
## `run_apnic_replay.sh`
|
||||
|
||||
默认使用:
|
||||
|
||||
Reference in New Issue
Block a user