add workers per GOMAXPROCS (#3483)

This commit is contained in:
Harshavardhana
2020-11-11 09:22:39 -08:00
committed by GitHub
parent 786a53672b
commit b2ab462551
+3 -3
View File
@@ -29,11 +29,11 @@ const (
// Monitor tick to decide to add new workers
monitorPeriod = 4 * time.Second
// Number of workers added per bandwidth monitoring.
defaultWorkerFactor = 2
)
// Number of workers added per bandwidth monitoring.
var defaultWorkerFactor = runtime.GOMAXPROCS(0)
// ParallelManager - helps manage parallel workers to run tasks
type ParallelManager struct {
// Calculate sent bytes.