diff --git a/internal/config/config.go b/internal/config/config.go index d91e3ea..1454863 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -42,9 +42,7 @@ const ( // (runtime.GOMAXPROCS(0), which follows a container's CPU limit), rounded // down, and at least 1. func DefaultMaxConcurrentProcessing() int { - const cpusPerImage = 2 - - return max(runtime.GOMAXPROCS(0)/cpusPerImage, 1) + return max(runtime.GOMAXPROCS(0)/2, 1) //nolint:mnd // half the CPUs } // Configuration key names.