Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66143 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96612 invoked from network); 22 Feb 2013 00:02:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2013 00:02:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=daniel@zoltak.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=daniel@zoltak.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zoltak.com from 150.101.137.141 cause and error) X-PHP-List-Original-Sender: daniel@zoltak.com X-Host-Fingerprint: 150.101.137.141 ipmail04.adl6.internode.on.net Received: from [150.101.137.141] ([150.101.137.141:39126] helo=ipmail04.adl6.internode.on.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/E6-58335-3A5B6215 for ; Thu, 21 Feb 2013 19:02:44 -0500 Received: from ppp154-54.static.internode.on.net (HELO zoltak.com) ([150.101.154.54]) by ipmail04.adl6.internode.on.net with SMTP; 22 Feb 2013 10:32:40 +1030 Received: (qmail 2923 invoked from network); 22 Feb 2013 00:02:39 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by 127.0.0.1 with SMTP; 22 Feb 2013 00:02:39 -0000 Received: from myob.com.au (myob.com.au [203.34.100.2]) by webmail.zoltak.com (Horde Framework) with HTTP; Fri, 22 Feb 2013 11:02:39 +1100 Message-ID: <20130222110239.99135i9ft0nb9dvk@webmail.zoltak.com> Date: Fri, 22 Feb 2013 11:02:39 +1100 To: Brendon Colby Cc: Rasmus Lerdorf , "internals@lists.php.net" References: <51229088.90306@lerdorf.com> <5122DA51.6090606@sugarcrm.com> <5122DBA9.2010004@lerdorf.com> <5122E00F.80409@sugarcrm.com> <5122E451.1040308@lerdorf.com> <20130222104255.20815joqlhlt1o1s@webmail.zoltak.com> In-Reply-To: <20130222104255.20815joqlhlt1o1s@webmail.zoltak.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.8) Subject: Re: [PHP-DEV] PHP causing high number of NFS getattr operations? From: daniel@zoltak.com Quoting daniel@zoltak.com: > Great points Brendon! > > We have a similar architectural to your setup running NetApp filers, > Apache/PHP web servers performing shared hosting for over 40,000+ > websites. > > We pull over 35k IOPS and 80% are from PHP stats and getattr's. > > Someone earlier mentioned that people now use GlusterFS as an > alternative. GlusterFS native client runs like absolute crap with > Apache/PHP applications in order to get reasonable performance you > must use the GlusterFS NFS implementation and mount the GlusterFS > using NFS. > > You end up in the same performance issues using GlusterFS and PHP. > More and more clustered PHP applications are using GlusterFS via > NFS. Due to the getattr and stat issues in PHP it doesn't scale well > in these sorts of deployments. I would also like to add that newer Cloud concentric application are developed so that they do not persistent data to local storage. This then negates the use of NFS i.e. we can deploy code via git to the nodes running on local storage. All dynamically generated user data is persisted to object storage and sessions are persisted using the memcache session handler. However in order to support legacy applications that are not Cloud centric then a network file system is the only viable option in shared hosting environments. Regards, Dan Zoltak