X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1e13d4ecffd4d335eb7918a7b9bd992f3f192cd1..96c664032e219cab6113acadca843f94009d39e4:/services/keepstore/command.go?ds=sidebyside diff --git a/services/keepstore/command.go b/services/keepstore/command.go index be26397736..0927b18704 100644 --- a/services/keepstore/command.go +++ b/services/keepstore/command.go @@ -157,9 +157,8 @@ func (h *handler) setup(ctx context.Context, cluster *arvados.Cluster, token str } bufs = newBufferPool(h.Logger, h.Cluster.API.MaxKeepBlobBuffers, BlockSize) - if h.Cluster.API.MaxConcurrentRequests < 1 { - h.Cluster.API.MaxConcurrentRequests = h.Cluster.API.MaxKeepBlobBuffers * 2 - h.Logger.Warnf("API.MaxConcurrentRequests <1 or not specified; defaulting to MaxKeepBlobBuffers * 2 == %d", h.Cluster.API.MaxConcurrentRequests) + if h.Cluster.API.MaxConcurrentRequests > 0 && h.Cluster.API.MaxConcurrentRequests < h.Cluster.API.MaxKeepBlobBuffers { + h.Logger.Warnf("Possible configuration mistake: not useful to set API.MaxKeepBlobBuffers (%d) higher than API.MaxConcurrentRequests (%d)", h.Cluster.API.MaxKeepBlobBuffers, h.Cluster.API.MaxConcurrentRequests) } if h.Cluster.Collections.BlobSigningKey != "" {