config: increase default Provide.DHT.MaxProvideConnsPerWorker (#11016)
Increase default Provide.DHT.MaxProvideConnsPerWorker value to match the DHT replication factor (16 -> 20). A similar value is used in legacy systems (with and without accelerated DHT client).
Guillaume Michel committed
Oct 14, 2025 at 17:10 UTC
241b72353471750efbae75665bbf3f5ee176b21f
2 files changed
+8
-2
config/provide.go
+1
-1
@@ -18,7 +18,7 @@ const (
18
DefaultProvideDHTSweepEnabled = false
19
DefaultProvideDHTDedicatedPeriodicWorkers = 2
20
DefaultProvideDHTDedicatedBurstWorkers = 1
21
- DefaultProvideDHTMaxProvideConnsPerWorker = 16
21
+ DefaultProvideDHTMaxProvideConnsPerWorker = 20
22
DefaultProvideDHTKeystoreBatchSize = 1 << 14 // ~544 KiB per batch (1 multihash = 34 bytes)
23
DefaultProvideDHTOfflineDelay = 2 * time.Hour
24
)
docs/config.md
+7
-1
@@ -2167,7 +2167,13 @@ from that keyspace region until all provider records are assigned.
2167
This option defines how many such connections can be open concurrently by a
2168
single worker.
2169
2170
-Default: `16`
2170
+> [!NOTE]
2171
+> Increasing this value can speed up the provide operation, at the cost of
2172
+> opening more simultaneous connections to DHT servers. A keyspace typically
2173
+> has less than 60 peers, so you may hit a performance ceiling beyond which
2174
+> increasing this value has no effect.
2175
+
2176
+Default: `20`
2177
2178
Type: `optionalInteger` (non-negative)
2179