diff --git a/internal/web/job/node_traffic_sync_job.go b/internal/web/job/node_traffic_sync_job.go index 5f5c7ec03..71931b797 100644 --- a/internal/web/job/node_traffic_sync_job.go +++ b/internal/web/job/node_traffic_sync_job.go @@ -16,7 +16,9 @@ import ( ) const ( - nodeTrafficSyncConcurrency = 8 + // The heartbeat's bound: at 8, 300 nodes 80ms away took 25-30s per 5s tick on SQLite + // and 6-9s at 32; neither SQLite nor Postgres raised lock or pool errors. + nodeTrafficSyncConcurrency = 32 nodeTrafficSyncRequestTimeout = 4 * time.Second nodeReconcileTimeout = 30 * time.Second nodeClientIpSyncInterval = 10 * time.Second