From a9ee94466e90cfdb8b8e47c2da2f8f99da15daa5 Mon Sep 17 00:00:00 2001 From: Rene Fichtmueller Date: Sat, 28 Mar 2026 15:16:42 +1300 Subject: [PATCH] perf: reduce audit concurrency to 3 to avoid PDB hammering --- audit/audit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audit/audit.py b/audit/audit.py index b4f1abd..9d17f3e 100644 --- a/audit/audit.py +++ b/audit/audit.py @@ -51,7 +51,8 @@ RIPE_BASE = "https://stat.ripe.net/data" BATCH_SIZE = 100 TIMEOUT_PC = 90 # large networks (Cloudflare, Amazon) can take 60–80s TIMEOUT_AUTH = 30 -CONCURRENCY = 4 # parallel PeerCortex requests +CONCURRENCY = 3 # parallel PeerCortex requests — keep low to avoid PDB hammering + # (each PC lookup triggers 3+ PDB calls internally) # Tolerance for prefix/neighbour counts (BGP timing differences are normal) PREFIX_TOL_PCT = 0.05 # 5%