Open rguennichi opened 9 months ago
Thanks for reporting this to us. We are currently working on some enhancements to our PHP implementation and I am more than happy to put this one to the list of things we are looking into.
Would you mind sharing the Dockerfile you are using?
Unit version: 1.31.1 (Alpine 3.18 - php82)
Recently I faced issues with significant latency and delays during periods of scaling or when new requests arrive after periods of processes idleness.
Environment:
Details:
First I configured Unit to dynamically manage processes (scaling up from idle), I noticed considerable latency in processing incoming requests. This is particularly evident after deployments, processes scaling operations or when new requests hit a pod with a process that has been idle. The process latency manifests as delays and lags in request processing, leading to sporadic timeout errors (more than 3 seconds).
Adjusting the configuration to use a static number of processes reduces the frequency of these issues but does not eliminate them. The problem persists, particularly during deployment and scaling operations, where the initial requests to a newly started pod experience significant delays.
Configuring it to run only one process per pod seems to resolve these latency issues. However, this approach is really a resource-intensive especially considering amount of pods to create / memory consumption I need to allocate per pod.
Steps to Reproduce:
processes.idle_timeout
) and try againPlease let me know if you need more details or I miss something in the configuration.