Skip to content

Commit 19c53e3

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/config.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ You can also explicitly configure FrankenPHP using the [global option](https://c
112112
# ...
113113
```
114114

115+
If the worker mode is enabled, an additional thread is required to handle the incoming requests,
116+
so the default `num_threads` value is `1 + 2x(number of available CPUs)`.
117+
118+
Thus, in that mode if `num_threads` and `num` are explicitly set, `num_threads` must be strictly greater then `num`.
119+
115120
Alternatively, you may use the one-line short form of the `worker` option:
116121

117122
```caddyfile

0 commit comments

Comments
 (0)