Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

reduce provide workers to 6 #93

Merged
merged 2 commits into from
Mar 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bitswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ const (
maxProvidersPerRequest = 3
findProviderDelay = 1 * time.Second
providerRequestTimeout = time.Second * 10
provideTimeout = time.Second * 15
sizeBatchRequestChan = 32
// these requests take at _least_ two minutes at the moment.
provideTimeout = time.Minute * 3
sizeBatchRequestChan = 32
)

var (
HasBlockBufferSize = 256
provideKeysBufferSize = 2048
provideWorkerMax = 512
provideWorkerMax = 6

// the 1<<18+15 is to observe old file chunks that are 1<<18 + 14 in size
metricsBuckets = []float64{1 << 6, 1 << 10, 1 << 14, 1 << 18, 1<<18 + 15, 1 << 22}
Expand Down