Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DF9E4632BF6 for ; Mon, 23 Aug 2010 13:03:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 77473-02 for ; Mon, 23 Aug 2010 16:03:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (unknown [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id BA86763287F for ; Mon, 23 Aug 2010 13:03:28 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 07ABD348034; Mon, 23 Aug 2010 09:03:08 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wsOJ2ywAeZhO; Mon, 23 Aug 2010 09:03:01 -0700 (PDT) Received: from [75.142.154.144] (unknown [75.142.154.144]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 00B5E348002; Mon, 23 Aug 2010 09:03:00 -0700 (PDT) Subject: Re: pgBouncer for connection pooling From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: Kieren Scott Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Mon, 23 Aug 2010 09:02:31 -0700 Message-ID: <1282579351.665.4.camel@jd-desktop.unknown.charter.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201008/149 X-Sequence-Number: 35398 On Mon, 2010-08-23 at 14:38 +0000, Kieren Scott wrote: > Hi, > > I have a web-based application (drupal) which uses PHP to make > connections to a back-end postgresql 8.3 server. The application and > database are on separate servers, but as we can get 20+ concurrent > connections on the database I've looked at pgBouncer to try and reduce > the overhead of new connections on the database. I currently have > pgBouncer running on the same server as my postgres database but I was > wondering whether this is a recommended setup - are the performance > benefits of using a connection pooler overshadowed by the overhead of > running pgBouncer on the same server as the database? > > How are other people using pgBouncer? E.g. on a separate server from > the database etc...? We use it in both on separate boxes as well as local. As long as your machine is handling the connection processing of the pooler fine, I wouldn't worry about it. There are some specific high end off machine things you can do (point at different databases on different machines from a single pooler) that is cool but for just a Drupal website it is probably not required. JD -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting, Training, Support, Custom Development, Engineering http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt