Skip to content

Commit

Permalink
Merge pull request ipfs/go-bitswap#93 from ipfs/fix/reduce-provide-wo…
Browse files Browse the repository at this point in the history
…rkers

reduce provide workers to 6

This commit was moved from ipfs/go-bitswap@85e3f43
  • Loading branch information
Stebalien authored Mar 28, 2019
2 parents bc708fe + 310fcba commit 54c6ab3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bitswap/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

0 comments on commit 54c6ab3

Please sign in to comment.