Christopher,
Aleks,

Am 04.05.20 um 11:28 schrieb Christopher Faulet:
> Le 03/05/2020 à 09:52, Aleksandar Lazic a écrit :
>>
>> My php-fpm have the following settings.
>>
>> ```
>> pm = dynamic
>> pm.max_children = 10
>> pm.min_spare_servers = 4
>> pm.start_servers = 5
>> pm.max_spare_servers = 6
>> pm.max_requests = 500
>> ```
>>
> [...]
> 
> Hi Aleks,
> 
> I've made some tests on my side and the fork politic of php-fpm seems to
> be a bit strange because with the same config and the check disabled,
> I've the same warning and 10 php-fpm children with only 3 clients. When
> I checked the opened connections, I only have 4 connections. So there is
> no reason to have 10 children.
> 

It does not looks too off to me given Aleks' configuration:

PHP starts off with 5 worker processes (idle). If at least 6 requests
come in at the same time then PHP will reach 10 worker processes,
because PHP is configured to keep 4 idle processes at all times. A 7th
request would violate the minimum number of idle processes.

Now if the number of concurrent requests goes down to 4 you will still
see the 10 processes, because PHP is allowed to keep 6 idle processes
around.

Best regards
Tim Düsterhus

Reply via email to