perf: reduce audit concurrency to 3 to avoid PDB hammering

This commit is contained in:
Rene Fichtmueller 2026-03-28 15:16:42 +13:00
parent 711b89a09e
commit a9ee94466e

View File

@ -51,7 +51,8 @@ RIPE_BASE = "https://stat.ripe.net/data"
BATCH_SIZE = 100 BATCH_SIZE = 100
TIMEOUT_PC = 90 # large networks (Cloudflare, Amazon) can take 6080s TIMEOUT_PC = 90 # large networks (Cloudflare, Amazon) can take 6080s
TIMEOUT_AUTH = 30 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) # Tolerance for prefix/neighbour counts (BGP timing differences are normal)
PREFIX_TOL_PCT = 0.05 # 5% PREFIX_TOL_PCT = 0.05 # 5%