-
Hi, we are using not worker mode as it is not supported by the application. I think the documentation could be improved for that case. Especially:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Currently, threads never restart until you restart the whole server. I'm not sure if there is a use case for restarting them. |
Beta Was this translation helpful? Give feedback.
-
You are probably right. The manual says that it can be used to work around memory leaks, but this is hopefully not needed: But I am correct that num_threads is the equivalent to max_children in PHP-FPM with static mode? |
Beta Was this translation helpful? Give feedback.
-
Well, I think you are right, there is no practical use for it, only in case of memory leaks in PHP extensions it would make sense. And to avoid idle timeouts of database connections, which could also be solved by dynamic scaling. Still, I am missing some documentation about running Frankenphp in non-worker mode (like using FPM), even if it is just one sentence. I might open a PR for that. One more question, how does Frankenphp handle requests that exceed the thread limit (in non-worker mode)?
|
Beta Was this translation helpful? Give feedback.
Actually, it's the default. If you don't opt-in for the worker mode, you're in normal mode. PR welcome to make that more clear.
These limits apply if set https://caddyserver.com/docs/caddyfile/options#timeouts
I don't think we currently have a limit for the number of waiting requests, but we may add one.