php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51973 a way to restart single pools, enable/disable modules per pool
Submitted: 2010-06-02 13:01 UTC Modified: 2017-10-24 07:43 UTC
Votes:12
Avg. Score:3.8 ± 1.1
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:2 (40.0%)
From: slogster at gmail dot com Assigned:
Status: Open Package: FPM related
PHP Version: 5.3SVN-2010-06-02 (SVN) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: slogster at gmail dot com
New email:
PHP Version: OS:

 

 [2010-06-02 13:01 UTC] slogster at gmail dot com
Description:
------------
Hi,



I would like to be able do enable/disable modules per pool and would also like to be able to restart single pool when I change its config.



Thanks


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-02 13:21 UTC] fat@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: fat
 [2010-06-13 16:04 UTC] fat@php.net
For enabeling extensions you can use the php_admin_value setting for each pool:

php_admin_value[extension] = extension.so
 [2010-07-22 23:21 UTC] fat@php.net
-Status: Assigned +Status: Analyzed
 [2010-07-22 23:21 UTC] fat@php.net
Hi there.

There is no way to restart a single pool. If you change the conf file, send a USR2 
signal to the FPM process. All pool will be restarted. If you really don't want to 
restart other pools, you can safely send a QUIT signal the each pool processes.

btw, this bugs makes me think about adding a gracefull restart of FPM.
 [2011-07-05 08:18 UTC] daniele dot pignedoli at gmail dot com
+1
Would be great also the possibility to add fpm pools on-the-fly without having to restart fpm (causing a downtime to all pools)
 [2011-07-22 08:06 UTC] uros dot gruber at gmail dot com
+1

This could realy be usefull.
 [2011-10-21 13:53 UTC] dbetz at df dot eu
Hello,

a graceful restart would be really nice .... AFTER ondemand feature :-D

Greetings,
Daniel
 [2013-01-28 18:58 UTC] rschmidt at key-systems dot net
Hi all,

I am playing with fpm and chroot using unix sockets for shared web hosting. There 
is also a problem with recreating a missing socket file which requires a complete 
restart of fpm.

Any news on this request here?

Regards,
Ralph
 [2014-07-03 15:38 UTC] m at ttias dot be
Currently, the only way to do this is to run multiple PHP-FPM masters, all with a single pool. That way, you have full control over which extensions are loaded and how they're configured and you can restart a single pool without impacting others.

This technique, as well as example configs, is further explained in this blogpost: http://mattiasgeniar.be/2014/04/09/a-better-way-to-run-php-fpm/
 [2014-07-03 15:43 UTC] daniele dot pignedoli at gmail dot com
Thanks mattiast, its a very good solution.. i'll dive into next days
 [2017-10-24 05:22 UTC] kalle@php.net
-Status: Analyzed +Status: Assigned
 [2017-10-24 07:43 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: fat +Assigned To:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 19:01:29 2024 UTC