X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8FB5FD1D200 for ; Mon, 26 Jan 2004 06:39:25 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 57354-09 for ; Mon, 26 Jan 2004 02:38:55 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id A8F11D1CC8D for ; Mon, 26 Jan 2004 02:38:54 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i0Q6cqU6063789 for ; Mon, 26 Jan 2004 06:38:52 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i0Q6ZYku063136 for pgsql-performance@postgresql.org; Mon, 26 Jan 2004 06:35:34 GMT From: Randolf Richardson X-Newsgroups: comp.databases.postgresql.performance Subject: Re: Persistent Connections Date: Mon, 26 Jan 2004 06:35:34 +0000 (UTC) Organization: Inter-Corporate Computer & Network Services, Inc. Lines: 33 Message-ID: References: <20040124173209.933905A8170@kserver17.erfurt12.de> <4013A85C.1010406@chuckie.co.uk> X-Complaints-To: usenet@news.hub.org User-Agent: Xnews/5.04.25 X-Face: +kXh]8'{:R`HzXla-aT~$s8a+C)k/B%RBr$_3sP`[kA}cl7#mD^9Z:oM`HpoC_kUEH['RZ*Ob%pz\ww^q&x)~zc`.xd]VQ4WN/3t2nS-BvI%LF\B4:\9$EI:/|<)`?8I_; xzG@SOYFir/gk_eB4"Rl43-h%)8O0sR$b&Mp3XHR(0j= X-Face-Author: Randolf Richardson (composed with Adobe Photoshop) To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/339 X-Sequence-Number: 5513 "nicky@chuckie.co.uk (Nick Barr)" stated in comp.databases.postgresql.performance: > postgres@countup.de wrote: [sNip] >> Sorry I m a little bit confused about the persistent thing!! >> Is it smart to use persistent connections at all if i expect 100K >> Users to hit the script in an hour and the script calls up to 10-15 pg >> functions? >> I have at the mom one function but the server needs 500 ms, its a >> little bit too much i think, and it crashed when i had 20K users > > Use the persistent connection but make sure the parameters in > postgresql.conf match up with the Apache config. The specific settings > are MaxClients in httpd.conf and max_connections in postgresql.conf. > Make sure that max_connections is at least as big as MaxClients for > every database that your PHP scripts connect to. Do you happen to have (or know where to get) some sample configuration files for Apache 2 and PostgreSQL for this? The documentation I've found so far is pretty sparse, and sample files would be very helpful. THanks in advance. -- Randolf Richardson - rr@8x.ca Vancouver, British Columbia, Canada "We are anti-spammers. You will confirm subscriptions. Resistance is futile." Please do not eMail me directly when responding to my postings in the newsgroups.