mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
config: increase default Provide.DHT.MaxProvideConnsPerWorker (#11016)
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Check / lint (push) Has been cancelled
Docker Check / build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Check / lint (push) Has been cancelled
Docker Check / build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
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).
This commit is contained in:
parent
c04781c7f7
commit
241b723534
@ -18,7 +18,7 @@ const (
|
||||
DefaultProvideDHTSweepEnabled = false
|
||||
DefaultProvideDHTDedicatedPeriodicWorkers = 2
|
||||
DefaultProvideDHTDedicatedBurstWorkers = 1
|
||||
DefaultProvideDHTMaxProvideConnsPerWorker = 16
|
||||
DefaultProvideDHTMaxProvideConnsPerWorker = 20
|
||||
DefaultProvideDHTKeystoreBatchSize = 1 << 14 // ~544 KiB per batch (1 multihash = 34 bytes)
|
||||
DefaultProvideDHTOfflineDelay = 2 * time.Hour
|
||||
)
|
||||
|
||||
@ -2167,7 +2167,13 @@ from that keyspace region until all provider records are assigned.
|
||||
This option defines how many such connections can be open concurrently by a
|
||||
single worker.
|
||||
|
||||
Default: `16`
|
||||
> [!NOTE]
|
||||
> Increasing this value can speed up the provide operation, at the cost of
|
||||
> opening more simultaneous connections to DHT servers. A keyspace typically
|
||||
> has less than 60 peers, so you may hit a performance ceiling beyond which
|
||||
> increasing this value has no effect.
|
||||
|
||||
Default: `20`
|
||||
|
||||
Type: `optionalInteger` (non-negative)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user