Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57927 invoked from network); 23 Mar 2010 21:58:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Mar 2010 21:58:31 -0000 Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:56044] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/E0-51225-58939AB4 for ; Tue, 23 Mar 2010 16:58:30 -0500 Received: from [192.168.1.2] (ppp83-237-247-166.pppoe.mtu-net.ru [83.237.247.166]) by daylessday.org (Postfix) with ESMTPSA id 3F192BFA085; Wed, 24 Mar 2010 00:58:26 +0300 (MSK) Message-ID: <4BA93981.50908@daylessday.org> Date: Wed, 24 Mar 2010 00:58:25 +0300 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100111 SUSE/3.0.1-1.2 Thunderbird/3.0.1 MIME-Version: 1.0 To: Zeev Suraski CC: internals@lists.php.net References: <4BA8EF6F.8010503@daylessday.org> <4BA8F72E.5090701@sci.fi> <4BA8F985.1090109@daylessday.org> <4BA919D2.3060605@daylessday.org> <7.0.1.0.2.20100323222839.12d7b088@zend.com> <4BA92AD2.8010709@daylessday.org> <7.0.1.0.2.20100323230221.12e71af0@zend.com> In-Reply-To: <7.0.1.0.2.20100323230221.12e71af0@zend.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] FPM RFC From: tony@daylessday.org (Antony Dovgal) On 24.03.2010 00:05, Zeev Suraski wrote: >>How do you propose to describe the same set of options using php.ini syntax? >>Yes, simple things like "value=Yes/No" or "value=DIR" fit just fine >>into php.ini. >>But how would decribe a set of pools each with its own set of options? >>(taking into account that some of these options may override global options) > > option... > anotheroption... > > [pool1] > option... > anotheroption... > > [pool2] > option... > anotheroption... Okay, here is XML based config quickly converted to php.ini-style syntax: ========================================================================== [fpm.flobals] pid_file = /usr/local/var/run/php-fpm.pid error_log = /usr/local/var/log/php-fpm.log log_level = notice emergency_restart_threshold = 10 emergency_restart_interval = 1m process_control_timeout = 5s daemonize = yes [fpm.workers] [default] listen_address = 127.0.0.1:9000 listen_options = backlog = -1 owner = nobody group = nobody mode = 0666 [php_defines] sendmail_path = /usr/sbin/sendmail -t -i display_errors = 0 error_log = /var/log/php-error.log log_errors = true [----- Uhm, no way to mark the end of the section ------] user = nobody group = nobody [pm] style = static max_children = 50 status = /status ping = /ping pong = pong [dynamic] start_servers = 20 min_spare_servers = 5 max_spare_servers = 35 [----- Uhm, no way to mark the end of the section ------] request_terminate_timeout = 0s request_slowlog_timeout = 0s slowlog = /usr/local/var/log/php-fpm.log.slow rlimit_files = 1024 rlimit_core = 0 chroot = chdir = catch_workers_output = yes max_requests = 500 allowed_clients = 127.0.0.1 [environment] HOSTNAME = $HOSTNAME PATH = /usr/local/bin:/usr/bin:/bin TMP = /tmp TMPDIR = /tmp TEMP = /tmp OSTYPE = $OSTYPE MACHTYPE = $MACHTYPE MALLOC_CHECK_ = 2 [----- Uhm, no way to mark the end of the section ------] [----- Uhm, no way to mark the end of the section ------] [----- Uhm, no way to mark the end of the section ------] [----- Uhm, no way to mark the end of the section ------] [----- Uhm, no way to mark the end of the section ------] ========================================================================== I won't discuss how it looks to me, but there is only one problem: it doesn't work. That's because php.ini doesn't support nested sections and without them it turns into a real mess. -- Wbr, Antony Dovgal --- http://pinba.org - realtime statistics for PHP