Increase batch sizes to 10000 and queue sizes to 200000, reduce timeout to 2s

This commit is contained in:
2025-07-28 02:11:05 +02:00
parent eda90d96a9
commit 8b43882526
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -12,13 +12,13 @@ import (
const (
// peerHandlerQueueSize is the queue capacity for peer tracking operations
peerHandlerQueueSize = 50000
peerHandlerQueueSize = 200000
// peerBatchSize is the number of peer updates to batch together
peerBatchSize = 500
peerBatchSize = 10000
// peerBatchTimeout is the maximum time to wait before flushing a batch
peerBatchTimeout = 5 * time.Second
peerBatchTimeout = 2 * time.Second
)
// PeerHandler tracks BGP peers from all message types using batched operations