feat: increase the default number of workers

This commit is contained in:
Kévin Dunglas 2023-07-17 11:08:30 +02:00
parent 70110dcc77
commit 6c215b8b10

View File

@ -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