From:             
Operating system: 
PHP version:      5.3.3
Package:          FPM related
Bug Type:         Feature/Change Request
Bug description:Allow zero pm.start_servers/pm.min_spare_servers

Description:
------------
We are currently implementing PHP-FPM in a shared hosting environment. We
have many users on one server (about 200) and we have to define one pool
for each customer (each with a different uid).

If PHP-FPM starts one children per customer at startup, this would kill the
servers, I think.

So we have to start them on demand. When using PHP via mod_fcgid/suEXEC you
can define FcgidMinProcessesPerClass 0, which works fine, but in PHP-FPM
this is not allowed.



I tried to remove the check in fpm_conf.c:

  if (config->pm_min_spare_servers <= 0)

  if (config->pm_start_servers <= 0)



but this does not really work (zero children are created at startup which
is fine, but no child is created on request and the request hangs). I
currently don't find the right entry point.


-- 
Edit bug report at http://bugs.php.net/bug.php?id=52569&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52569&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52569&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52569&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52569&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52569&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52569&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52569&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52569&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52569&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52569&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52569&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52569&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52569&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52569&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52569&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52569&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52569&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52569&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52569&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52569&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52569&r=mysqlcfg

Reply via email to