Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1DBD8B5E094 for ; Tue, 31 May 2011 15:56:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 07888-08-2 for ; Tue, 31 May 2011 18:56:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id E909AB5DC49 for ; Tue, 31 May 2011 15:56:21 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 31 May 2011 13:56:21 -0500 Message-Id: <4DE4F380020000250003DF20@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 31 May 2011 13:56:16 -0500 From: "Kevin Grittner" To: "Wells Oliver" , "pgsql-admin@postgresql.org" Subject: Re: Server crash... trying to figure it out References: <509F1BCA-2A75-41F4-87F5-EBD098023D71@padres.com> <4DE4EDC5020000250003DF1B@gw.wicourts.gov> <5366FE31-4E2E-41C6-94F7-90C9D0477C44@padres.com> In-Reply-To: <5366FE31-4E2E-41C6-94F7-90C9D0477C44@padres.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/189 X-Sequence-Number: 37626 Wells Oliver wrote: > Do you have any recommendations on a pg connection pooler? If the software you're using includes a connection pool, that is often the best choice; if not (or it doesn't work well) both pgpool and pgbouncer have their followings. In my view the most important things are that the pool have a hard upper limit on the number of database connections, that it is aware of database transactions, and that when all connections are busy it will queue a request to start a new transaction until one of the existing transactions completes. A good pooler, configured to the right size (which is usually at or close to the number of actual cores on the machine, times two), will improve both throughput and response time under load. -Kevin