X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BBCBF3A3E73 for ; Thu, 4 Nov 2004 18:04:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60293-10 for ; Thu, 4 Nov 2004 18:04:01 +0000 (GMT) Received: from fep6.cogeco.net (smtp.cogeco.net [216.221.81.25]) by svr1.postgresql.org (Postfix) with ESMTP id 803D33A2BA9 for ; Thu, 4 Nov 2004 18:04:01 +0000 (GMT) Received: from [127.0.0.1] (d226-34-9.home.cgocable.net [24.226.34.9]) by fep6.cogeco.net (Postfix) with ESMTP id 9707D640; Thu, 4 Nov 2004 13:04:00 -0500 (EST) Message-ID: <418A6F10.2030309@ethereal-realms.org> Date: Thu, 04 Nov 2004 13:04:00 -0500 From: Martin Foster Organization: Ethereal Realms User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matt Clark , PostgreSQL Performance Subject: Re: Restricting Postgres References: <002e01c4c28c$06e83df0$8300a8c0@solent> In-Reply-To: <002e01c4c28c$06e83df0$8300a8c0@solent> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/51 X-Sequence-Number: 9005 Matt Clark wrote: >>Apache::DBI overall works better to what I require, even if >>it is not a >>pool per sey. Now if pgpool supported variable rate pooling like >>Apache does with it's children, it might help to even things >>out. That >>and you'd still get the spike if you have to start the webserver and >>database server at or around the same time. > > > I still don't quite get it though - you shouldn't be getting more than one > child per second being launched by Apache, so that's only one PG postmaster > per second, which is really a trivial load. That is unless you have > 'StartServers' set high, in which case the 'obvious' answer is to lower it. > Are you launching multiple DB connections per Apache process as well? > I have start servers set to a fairly high limit. However this would make little different overall if I restarted the webservers to load in new modules during a high load time. When I am averaging 145 concurrent connections before a restart, I can expect that many request to hit the server once Apache begins to respond. As a result, it will literally cause a spike on both machines as new connections are initiated at a high rate. In my case I don't always have the luxury of waiting till 0300 just to test a change. Again, not necessarily looking for a PostgreSQL solution. I am looking for a method that would allow the database or the OS itself to protect the system it's hosted on. If both the database and the apache server were on the same machine this type of scenario would be unstable to say the least. Martin Foster Creator/Designer Ethereal Realms martin@ethereal-realms.org