Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53723 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78083 invoked from network); 2 Jul 2011 17:53:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2011 17:53:43 -0000 Authentication-Results: pb1.pair.com header.from=jerome@loyet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jerome@loyet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain loyet.net from 209.85.214.170 cause and error) X-PHP-List-Original-Sender: jerome@loyet.net X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:58001] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/4B-05730-62B5F0E4 for ; Sat, 02 Jul 2011 13:53:43 -0400 Received: by iwn36 with SMTP id 36so4288742iwn.29 for ; Sat, 02 Jul 2011 10:53:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.67.138 with SMTP id r10mr3877672ibi.180.1309629219257; Sat, 02 Jul 2011 10:53:39 -0700 (PDT) Received: by 10.231.192.132 with HTTP; Sat, 2 Jul 2011 10:53:39 -0700 (PDT) Date: Sat, 2 Jul 2011 19:53:39 +0200 Message-ID: To: php-dev Content-Type: text/plain; charset=ISO-8859-1 Subject: FR #54098 -> default FPM values for processes From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) Hi there, in the following request https://bugs.php.net/bug.php?id=54098, the user ask to lower the FPM pm.max_children configuration item. As pm.* configuration items are very specific to every situation (hardware, code, # parallal requests, ...) there is no default value which suites everyone. I'd like to remove the default value from the php-fpm.conf file. After that, with the default php-fpm.conf, php-fpm won't start until the sysadmin specify what he wants. If package mainteners want the default conf file to work, they can change it as they like. What do you think ? ++ jerome PS: the very simple patch: Index: sapi/fpm/php-fpm.conf.in =================================================================== --- sapi/fpm/php-fpm.conf.in (revision 312812) +++ sapi/fpm/php-fpm.conf.in (working copy) @@ -148,7 +148,7 @@ ; of 'idle' processes is greater than this ; number then some children will be killed. ; Note: This value is mandatory. -pm = dynamic +;pm = dynamic ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes to be created when pm is set to 'dynamic'. @@ -158,7 +158,7 @@ ; CGI. ; Note: Used when pm is set to either 'static' or 'dynamic' ; Note: This value is mandatory. -pm.max_children = 50 +;pm.max_children = 50 ; The number of child processes created on startup. ; Note: Used only when pm is set to 'dynamic'