Req #62160 [Ana]: Add Option: Low-Priority Pool
| From: | geeky at geeky dot de | Date: | Fri, 25 May 2012 19:44:12 +0000 |
| Subject: | Req #62160 [Ana]: Add Option: Low-Priority Pool | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-170839@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62160&edit=1
ID: 62160
User updated by: geeky at geeky dot de
Reported by: geeky at geeky dot de
Summary: Add Option: Low-Priority Pool
Status: Analyzed
Type: Feature/Change Request
Package: FPM related
Operating System: Debian 6.0
PHP Version: 5.4.4RC1
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
Yes, that would be perfect
Previous Comments:
------------------------------------------------------------------------
[2012-05-25 19:29:48] fat@php.net
FPM is not design to manage priority between its processes. It just
stop/start/restart/watch them.
One thing which can be done is to play with nice(2) or setpriority(2).
We can add a priority=[-19,20] parameter in the configuration file for each pool
and the corresponding priority will be set when processes will be created.
Is that something that can fit your needs ?
thx for the answer.
++ fat
------------------------------------------------------------------------
[2012-05-25 17:26:54] geeky at geeky dot de
Description:
------------
It would be nice if a pool could be set to "low priority pool" (or even set a
priority).
Example: a website consisting of two parts:
(1) frontend: responsive-time is essential here
(2) background-synchronisation: should not slow down frontend, response-time is
not important.
In this case the background-pool should only use minimal/unused cpu-time in order
to keep the frontend-pool at full speed.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62160&edit=1