Req #52569 [Com]: Implement "ondemand" process-manager (to allow zero children)
| From: | fat@php.net | Date: | Sun, 10 Jul 2011 15:02:38 +0000 |
| Subject: | Req #52569 [Com]: Implement "ondemand" process-manager (to allow zero children) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161738@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52569&edit=1
ID: 52569
Comment by: fat@php.net
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:
pm.min_delay_between_fork has been removed since the version 9 of the patch. This
is normal :)
which OS/version are you using ?
Previous Comments:
------------------------------------------------------------------------
[2011-07-09 11:47:29] trollofdarkness at gmail dot com
I think I get the same problem as dbetz .
I am using sockets (one per website) with both Apache2 and Nginx. Neither with the first nor the
second it worked.
I tried with the use of ip:port instead of sockets but it is exactly the same...
I've no idea where it comes from.
------------------------------------------------------------------------
[2011-07-09 11:08:15] trollofdarkness at gmail dot com
Hello everyone,
I tried patching the last 5.3 SVN branch with the patch. All went well (config, compile, etc. ...).
But after restarting php-fpm I get that :
Starting php-fpm [09-Jul-2011 16:57:37] ERROR: [/usr/local/etc/php-fpm.conf:27] unknown entry
'pm.min_delay_between_fork'
Which is pretty strange because the other options are not showing any error :
This works :
[mypool]
pm = ondemand
pm.process_idle_timeout = 10
# plus the other config lines...
But this, will show the previous error message :
[mypool]
pm = ondemand
pm.process_idle_timeout = 10
pm.min_delay_between_fork = 10000 # this to avoid the known bug
# plus the other config lines...
Any idea ?
Else, beside that, if I use the pm = ondemand , there is absolutly no process forked. Neither at the
beginning, nor after, when a request comes...
However, pm=dynamic & pm=static still works well... ??
------------------------------------------------------------------------
[2011-07-09 08:33:10] fat@php.net
Here is a new release of the patch which is supposed to correct the double fork
bug.
I've moved pm.min_delay_between_fork to the event layer and it's now defined in
the global section as events.delay (default 500µs)
------------------------------------------------------------------------
[2011-07-09 08:30:31] fat@php.net
The following patch has been added/updated:
Patch Name: fpm-ondemand.v9-5.3.patch
Revision: 1310214631
URL: https://bugs.php.net/patch-display.php?bug=52569&patch=fpm-ondemand.v9-5.3.patch&revision=1310214631
------------------------------------------------------------------------
[2011-07-09 08:30:12] fat@php.net
The following patch has been added/updated:
Patch Name: fpm-ondemand.v9.patch
Revision: 1310214612
URL: https://bugs.php.net/patch-display.php?bug=52569&patch=fpm-ondemand.v9.patch&revision=1310214612
------------------------------------------------------------------------
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