Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B9A16632BA9 for ; Tue, 24 Aug 2010 01:18:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 70185-02 for ; Tue, 24 Aug 2010 04:18:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.illumen.com (unknown [64.207.29.137]) by mail.postgresql.org (Postfix) with ESMTP id 48793632456 for ; Tue, 24 Aug 2010 01:18:37 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CB4343.6B86B8F4" Subject: Re: pgBouncer for connection pooling Date: Mon, 23 Aug 2010 22:15:34 -0600 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] pgBouncer for connection pooling Thread-Index: ActC0OAigdvI+LM0ROuHYyvddacFJQAcaLgQ References: From: "Benjamin Krajmalnik" To: "Kieren Scott" , X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.106 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201008/163 X-Sequence-Number: 35412 This is a multi-part message in MIME format. ------_=_NextPart_001_01CB4343.6B86B8F4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have pgbouncer running on the same server, and I get over 2000 calls to a php page per minute. Each call does inserts data digests into partitioned tables. I also have a multi-threaded daemon connected to the same database running background operations on the data coming in. Works flawlessly. BTW, 20 connections is not a heavy load at all. In my application, pgbouncer has opened about 60 backends to handle the cases where I have a high oncurrency of data coming in at once, but usually the # non-idle connections is < 10. =20 =20 From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Kieren Scott Sent: Monday, August 23, 2010 8:38 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] pgBouncer for connection pooling =20 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...? Thanks in advance. ------_=_NextPart_001_01CB4343.6B86B8F4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have pgbouncer running on the same server, and I get = over 2000 calls to a php page per minute.

Each call does inserts data digests into partitioned = tables.

I also have a multi-threaded daemon connected to the same database running background operations on the data coming = in.

Works flawlessly.

BTW, 20 connections is not a heavy load at = all.

In my application, pgbouncer has opened about 60 backends = to handle the cases where I have a high oncurrency of data coming in at = once, but usually the # non-idle connections is < 10.

 

 

From:= pgsql-admin-owner@postgresql.org = [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Kieren Scott
Sent: Monday, August 23, 2010 8:38 AM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] pgBouncer for connection = pooling

 

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...?

Thanks in advance.

------_=_NextPart_001_01CB4343.6B86B8F4--