Skip to content

Commit f77eca5

Browse files
committed
doc(config): add a section for worker and thread numbers requirements
1 parent 6665004 commit f77eca5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/worker.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ frankenphp {
163163
}
164164
```
165165

166+
### Number of threads
167+
168+
When the worker mode is enabled, an additional thread is required to handle the incoming requests,
169+
so the default `num_threads` value is `1 + 2x(number of available CPUs)`.
170+
171+
Thus, in that mode if `num_threads` and `num` are explicitly set, `num_threads` must be strictly greater then `num`.
172+
166173
## Superglobals Behavior
167174

168175
[PHP superglobals](https://www.php.net/manual/en/language.variables.superglobals.php) (`$_SERVER`, `$_ENV`, `$_GET`...)

0 commit comments

Comments
 (0)