Welcome! Log In Create A New Profile

Advanced

Creating pools dynamically without restart fpm?

Posted by strae 
Creating pools dynamically without restart fpm?
July 11, 2011 09:02AM
Is this possible?

Im using fpm with nginx to build a multi-host like environment;
I have a script that create the `/etc/php5/fpm/fpm.d/$domain.conf` and the
source tree, but i dont understand if is possible to tell fpm to load that
pool without having to reload it (in order to avoid a downtime everytime a
domain is created).

Actually, i invoke a php5-cgi process (nginx is configurated to load PHP
over a socket) to serve the new domain, and once a day restart FPM (and kill
all php5-cgi processes), but as you see is not a solution, but just a
temporary trick.

Any idea?
Jérôme Loyet
Re: Creating pools dynamically without restart fpm?
July 11, 2011 09:02AM
2011/7/4 Strae <daniele.pignedoli@gmail.com>:
> Is this possible?

the short answer is NO.

Even a reload is killing processes. I have in mind to rethink this
part, but as it's complicated, I don't have any ETA.

Please, add a comment to https://bugs.php.net/bug.php?id=51973 as it's
a kind of similar problem.

>
> Im using fpm with nginx to build a multi-host like environment;
> I have a script that create the `/etc/php5/fpm/fpm.d/$domain.conf` and the
> source tree, but i dont understand if is possible to tell fpm to load that
> pool without having to reload it (in order to avoid a downtime everytime a
> domain is created).

There is no solution but to restart FPM at each domain creation for now.

++ Jerome

>
> Actually, i invoke a php5-cgi process (nginx is configurated to load PHP
> over a socket) to serve the new domain, and once a day restart FPM (and kill
> all php5-cgi processes), but as you see is not a solution, but just a
> temporary trick.
>
> Any idea?
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready