Welcome! Log In Create A New Profile

Advanced

Configuring pools without downtime

Posted by CPH 
CPH
Configuring pools without downtime
November 16, 2012 02:42PM
I am working on hosting sites using nginx and and php-fpm on centos. For
security I want each site I setup to have its own php-fpm pool. Is there a
way to allow the new pool configuration to load without downtime to my
existing sites? or is the only way to have to new pool running to restart
the service?
Re: Configuring pools without downtime
November 16, 2012 02:46PM
you should be able to do /etc/init.d/php-fpm reload instead of a restart, and it'll reload in place and pick up any new pools as well. Drawback is some changes on the filesystem may not get picked up by APC.


On Friday, November 16, 2012 at 1:17 PM, CPH wrote:

> I am working on hosting sites using nginx and and php-fpm on centos. For security I want each site I setup to have its own php-fpm pool. Is there a way to allow the new pool configuration to load without downtime to my existing sites? or is the only way to have to new pool running to restart the service?
CPH
Re: Configuring pools without downtime
November 16, 2012 03:10PM
Can't be too easy can it lol. What kind of workarounds are there to get APC
to pickup filesystem changes?

On Friday, November 16, 2012 11:44:18 AM UTC-8, Vid Luther wrote:
>
> you should be able to do /etc/init.d/php-fpm reload instead of a restart,
> and it'll reload in place and pick up any new pools as well. Drawback is
> some changes on the filesystem may not get picked up by APC.
>
> On Friday, November 16, 2012 at 1:17 PM, CPH wrote:
>
> I am working on hosting sites using nginx and and php-fpm on centos. For
> security I want each site I setup to have its own php-fpm pool. Is there a
> way to allow the new pool configuration to load without downtime to my
> existing sites? or is the only way to have to new pool running to restart
> the service?
>
>
>
Lorenzo Salvadorini
Re: Configuring pools without downtime
November 27, 2012 02:28PM
I know that APC does a stat for file changes if you have apc.stat=1 in
apc.ini file, that should be also the default value.

If you want to take a look at the APC contents you can use the "web
interface" of APC, you should find it in

/usr/share/pear/apc.php

My 2c
L

2012/11/16 CPH <cloudpresshosting@gmail.com>

> Can't be too easy can it lol. What kind of workarounds are there to get
> APC to pickup filesystem changes?
>
>
> On Friday, November 16, 2012 11:44:18 AM UTC-8, Vid Luther wrote:
>>
>> you should be able to do /etc/init.d/php-fpm reload instead of a
>> restart, and it'll reload in place and pick up any new pools as well.
>> Drawback is some changes on the filesystem may not get picked up by APC.
>>
>> On Friday, November 16, 2012 at 1:17 PM, CPH wrote:
>>
>> I am working on hosting sites using nginx and and php-fpm on centos. For
>> security I want each site I setup to have its own php-fpm pool. Is there a
>> way to allow the new pool configuration to load without downtime to my
>> existing sites? or is the only way to have to new pool running to restart
>> the service?
>>
>>
>>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
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