20260416_2 并行优化phase1后进行snapshot fast path优化,通过四方面关键优化技术消除了验证主链路上snapshot构建是的db访问性能热点问题,性能热点转移到ROA验证处理本身,目前APNIC+ARIN全量同步从500秒压缩到212秒,离rpkclient 112秒差距变小
This commit is contained in:
@@ -28,7 +28,9 @@ fn run_case(
|
||||
"--parallel-phase1".to_string(),
|
||||
"--disable-rrdp".to_string(),
|
||||
"--rsync-local-dir".to_string(),
|
||||
fixture("tests/fixtures/repository").to_string_lossy().to_string(),
|
||||
fixture("tests/fixtures/repository")
|
||||
.to_string_lossy()
|
||||
.to_string(),
|
||||
"--validation-time".to_string(),
|
||||
"2026-04-07T00:00:00Z".to_string(),
|
||||
"--max-depth".to_string(),
|
||||
@@ -67,14 +69,19 @@ fn multi_tal_parallel_output_matches_union_of_single_tal_outputs() {
|
||||
let arin_tal = fixture("tests/fixtures/tal/arin.tal");
|
||||
let arin_ta = fixture("tests/fixtures/ta/arin-ta.cer");
|
||||
|
||||
let (apnic_report, apnic_vrps, apnic_vaps, _) =
|
||||
run_case("apnic", &[(&apnic_tal, &apnic_ta)]);
|
||||
let (apnic_report, apnic_vrps, apnic_vaps, _) = run_case("apnic", &[(&apnic_tal, &apnic_ta)]);
|
||||
let (arin_report, arin_vrps, arin_vaps, _) = run_case("arin", &[(&arin_tal, &arin_ta)]);
|
||||
let (multi_report, multi_vrps, multi_vaps, multi_ccr) =
|
||||
run_case("multi", &[(&apnic_tal, &apnic_ta), (&arin_tal, &arin_ta)]);
|
||||
|
||||
let expected_vrps = apnic_vrps.union(&arin_vrps).cloned().collect::<BTreeSet<_>>();
|
||||
let expected_vaps = apnic_vaps.union(&arin_vaps).cloned().collect::<BTreeSet<_>>();
|
||||
let expected_vrps = apnic_vrps
|
||||
.union(&arin_vrps)
|
||||
.cloned()
|
||||
.collect::<BTreeSet<_>>();
|
||||
let expected_vaps = apnic_vaps
|
||||
.union(&arin_vaps)
|
||||
.cloned()
|
||||
.collect::<BTreeSet<_>>();
|
||||
|
||||
assert_eq!(multi_vrps, expected_vrps);
|
||||
assert_eq!(multi_vaps, expected_vaps);
|
||||
|
||||
Reference in New Issue
Block a user