Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47543 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79326 invoked from network); 24 Mar 2010 06:36:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Mar 2010 06:36:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Received: from [63.205.162.117] ([63.205.162.117:34791] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/61-06060-4E2B9AB4 for ; Wed, 24 Mar 2010 01:36:21 -0500 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id B632E43F73; Tue, 23 Mar 2010 23:37:32 -0700 (PDT) Received: from [192.168.27.4] ([192.168.27.4]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 23 Mar 2010 23:36:17 -0700 Message-ID: <4BA9B2E1.30604@zend.com> Date: Tue, 23 Mar 2010 23:36:17 -0700 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: Antony Dovgal 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> <4BA93981.50908@daylessday.org> <7.0.1.0.2.20100324000052.13ffc888@zend.com> <4BA93FDA.7070807@daylessday.org> In-Reply-To: <4BA93FDA.7070807@daylessday.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Mar 2010 06:36:17.0958 (UTC) FILETIME=[4F11F460:01CACB1C] Subject: Re: [PHP-DEV] FPM RFC From: stas@zend.com (Stanislav Malyshev) Hi! > I'm sure you understand that nesting makes things much more easier to read. > fpm.workers..pm.dynamic.start_servers is not my preferred syntax. This is actually highly debatable. Nesting does not allow you an easy way to know where each value belongs to - you'd have to climb up the tree and hope you didn't skip some branch by chance. Of course, it is much more verbose, but you don't really need that many levels of hierarchy. If you give up on literally translating xml, I'm sure you'll notice that start_servers can live on it's own without being prefixed, etc. So you'd have one level for FPM in general, one for specific worker, one for category and one for actual option: fpm.myworker.server.start_servers = 20 fpm.myworker.php_defines.memory_limit = 64M etc. It's not that bad. As for spaces in pool names - come on, you're not going to write a novel there. No programming language allows spaces in identifiers and we manage to live with it :) > And yes, this is how it should look like since you're implying that FPM config > should be a part of php.ini (otherwise I don't see how these two different files are related at all). It shouldn't be part of php.ini, but it'd be nice if it was part of php config system. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com