pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: lindner@inuus.com
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Prepared Statements vs. pgbouncer
Date: Mon, 01 Oct 2007 11:18:54 -0700
Message-ID: <47013A0E.6080607@agliodbs.com> (raw)
In-Reply-To: <4700B21C.1000008@enterprisedb.com>
References: <20070929002513.GG3140@inuus.com>
	<46FDA4F2.8080507@opencloud.com>
	<20070929021522.GH3140@inuus.com>
	<24584.1191033096@sss.pgh.pa.us>
	<20070929072159.GI3140@inuus.com>
	<46FE3B1A.7020603@agliodbs.com>
	<46FED7FA.6060309@opencloud.com>
	<46FFC314.5080205@agliodbs.com>
	<47000C2E.8030409@opencloud.com>
	<4700B21C.1000008@enterprisedb.com>

Heikki,

> You might also consider if using pgbouncer or similar really is
> necessary. Perhaps you could get away with a per-client connection pool,
> with "min pool size" small enough, maybe 0, that the number of
> simultaneous connections to the server would stay reasonable.
> 

It becomes necessary whenever you have a large number of appservers 
connecting to the same database server.  Setting min pool size downwards 
isn't really effective becuase then you're just adding connection time 
delays ... exactly what you're trying to prevent by using a connection pool.

I'm working on a scalable project myself which is why I'm concerned 
about this.  The reason why we're planning to rely on pgBouncer is that 
we'll have both java and non-java applications connecting to the same 
database, and we don't want to manage two different connection/failover 
pools.  So it's important to us that PG-JDBC function with independant 
connection pools.

So where is it going to be easier to fix this ... pgBouncer, or pg-JDBC?

--Josh Berkus



view thread (48+ messages)  latest in thread

Message-ID: <47013A0E.6080607@agliodbs.com>
Permalink:  ../47013A0E.6080607@agliodbs.com/
Also on:    postgresql.org/message-id/47013A0E.6080607@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: josh@agliodbs.com, heikki@enterprisedb.com, lindner@inuus.com, oliver@opencloud.com
  Subject: Re: Prepared Statements vs. pgbouncer
  In-Reply-To: <47013A0E.6080607@agliodbs.com>
  References: <20070929002513.GG3140@inuus.com> <46FDA4F2.8080507@opencloud.com> <20070929021522.GH3140@inuus.com> <24584.1191033096@sss.pgh.pa.us> <20070929072159.GI3140@inuus.com> <46FE3B1A.7020603@agliodbs.com> <46FED7FA.6060309@opencloud.com> <46FFC314.5080205@agliodbs.com> <47000C2E.8030409@opencloud.com> <4700B21C.1000008@enterprisedb.com> <47013A0E.6080607@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox