diff --git a/app/vmselect/main.go b/app/vmselect/main.go index 83fcbdda9..ebbc724ed 100644 --- a/app/vmselect/main.go +++ b/app/vmselect/main.go @@ -44,10 +44,7 @@ var ( var slowQueries = metrics.NewCounter(`vm_slow_queries_total`) func getDefaultMaxConcurrentRequests() int { - n := cgroup.AvailableCPUs() - if n <= 4 { - n *= 2 - } + n := cgroup.AvailableCPUs() * 2 if n > 16 { // A single request can saturate all the CPU cores, so there is no sense // in allowing higher number of concurrent requests - they will just contend