summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.go b/config.go
index 23f1afc8..649ad9f4 100644
--- a/config.go
+++ b/config.go
@@ -2,6 +2,7 @@ package roadrunner
import (
"fmt"
+ "runtime"
"time"
)
@@ -29,6 +30,7 @@ type Config struct {
func (cfg *Config) InitDefaults() error {
cfg.AllocateTimeout = time.Minute
cfg.DestroyTimeout = time.Minute
+ cfg.NumWorkers = int64(runtime.NumCPU())
return nil
}