mirror of
https://github.com/dunglas/frankenphp
synced 2024-11-21 23:30:45 +00:00
feat: increase the default number of workers
This commit is contained in:
parent
70110dcc77
commit
6c215b8b10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user