Unverified Commit 85e3f43f authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #93 from ipfs/fix/reduce-provide-workers

reduce provide workers to 6
parents 088fd5f7 e5acc1a4
...@@ -46,14 +46,15 @@ const ( ...@@ -46,14 +46,15 @@ const (
maxProvidersPerRequest = 3 maxProvidersPerRequest = 3
findProviderDelay = 1 * time.Second findProviderDelay = 1 * time.Second
providerRequestTimeout = time.Second * 10 providerRequestTimeout = time.Second * 10
provideTimeout = time.Second * 15 // these requests take at _least_ two minutes at the moment.
sizeBatchRequestChan = 32 provideTimeout = time.Minute * 3
sizeBatchRequestChan = 32
) )
var ( var (
HasBlockBufferSize = 256 HasBlockBufferSize = 256
provideKeysBufferSize = 2048 provideKeysBufferSize = 2048
provideWorkerMax = 512 provideWorkerMax = 6
// the 1<<18+15 is to observe old file chunks that are 1<<18 + 14 in size // 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} metricsBuckets = []float64{1 << 6, 1 << 10, 1 << 14, 1 << 18, 1<<18 + 15, 1 << 22}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment