Browse Source

feat: increase the default number of workers

Kévin Dunglas 1 year ago
parent
commit
6c215b8b10
1 changed files with 2 additions and 1 deletions
  1. 2 1
      frankenphp.go

+ 2 - 1
frankenphp.go

@@ -240,7 +240,8 @@ func Init(options ...Option) error {
 	var numWorkers int
 	for i, w := range opt.workers {
 		if w.num <= 0 {
-			opt.workers[i].num = numCPU
+			// https://github.com/dunglas/frankenphp/issues/126
+			opt.workers[i].num = numCPU * 2
 		}
 
 		numWorkers += opt.workers[i].num