Edit report at https://bugs.php.net/bug.php?id=52569&edit=1
ID: 52569 Comment by: dbetz at df dot eu Reported by: mplomer at gmx dot de Summary: Implement "ondemand" process-manager (to allow zero children) Status: Analyzed Type: Feature/Change Request Package: FPM related PHP Version: 5.3.3 Assigned To: fat Block user comment: N Private report: N New Comment: Hi Jerome, what config options must i have in php-fpm.conf to get this working ? I have tried following: pm = ondemand pm.min_spare_servers = 1 pm.max_children = 2000 pm.process_idle_timeout = 10s pm.min_delay_between_fork = 100 but no child starts for this pool: [06-Jul-2011 16:32:31.031068] DEBUG: pid 3417, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool default] currently 0 active children, 0 spare children [06-Jul-2011 16:32:32.031349] DEBUG: pid 3417, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool default] currently 0 active children, 0 spare children greets, daniel Previous Comments: ------------------------------------------------------------------------ [2011-07-05 19:15:08] f...@php.net I've upload 2 new versions of the patch for the ondemand PM: 1- fpm-ondemand.v7.patch applies to 5.4 SVN branch and trunk 2- fpm-ondemand.v7-5.3.patch applies to 5.3 SVN branch it works except that the event is triggered more than once when a request is coming. This makes the ondemand PM to fork more than it should do. I'll look into that but if you have an idea, don't keep it for yourself. Can you please test it ? thx ++ jerome ------------------------------------------------------------------------ [2011-07-05 19:12:10] f...@php.net The following patch has been added/updated: Patch Name: fpm-ondemand.v7-5.3.patch Revision: 1309907530 URL: https://bugs.php.net/patch-display.php?bug=52569&patch=fpm-ondemand.v7-5.3.patch&revision=1309907530 ------------------------------------------------------------------------ [2011-07-05 19:08:22] f...@php.net The following patch has been added/updated: Patch Name: fpm-ondemand.v7.patch Revision: 1309907302 URL: https://bugs.php.net/patch-display.php?bug=52569&patch=fpm-ondemand.v7.patch&revision=1309907302 ------------------------------------------------------------------------ [2011-06-11 10:38:18] mplomer at gmx dot de Unfortunately not, as libevent was removed from FPM in PHP 5.3.4, the patch has to be ported to the new simple mini event library. If you are interested to do the port and you are familar with C you are welcome, and I can give you a quick starting point. ------------------------------------------------------------------------ [2011-06-11 10:22:33] denoc at gmx dot de I tried to patch php5-5.3.5 with the last offered patch, but it did not work. Does a patch against the current version exist? Thanks ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52569 -- Edit this bug report at https://bugs.php.net/bug.php?id=52569&edit=1