Re: Rather large LA - Mailing list pgsql-performance

From Craig Ringer
Subject Re: Rather large LA
Date
Msg-id 4E64AF9D.3060601@ringerc.id.au
Whole thread Raw
In response to Re: Rather large LA  (Richard Shaw <richard@aggress.net>)
List pgsql-performance
On 5/09/2011 6:55 PM, Richard Shaw wrote:
> Hi Craig,
>
> Apologies, I should have made that clearer, I am using PgBouncer 1.4.1 in front of Postgres and included the config
atthe bottom of my original mail 
>
Ah, I see. The point still stands: your hardware can *not* efficiently
do work for 1000 concurrent backend workers. Reduce the maximum number
of workers by setting a lower cap on the pool size and a lower
max_connections. This won't work (you'll run out of pooler connections)
unless you also set PgBouncer to transaction pooling mode instead of the
default session pooling mode, which you're currently using. It is
*important* to read the documentation on this before doing it, as there
are implications for apps that use extra-transactional features like
HOLD cursors and advisory locks.

See: http://pgbouncer.projects.postgresql.org/doc/usage.html

It may also be necessary to set PgBouncer to block (wait) rather than
report an error when there is no pooled connection available to start a
new transaction on. I'm not sure what PgBouncer's default behavior for
that is and didn't see anything immediately clear in the pgbouncer(5)
ini file man page.

--
Craig Ringer

pgsql-performance by date:

Previous
From: Richard Shaw
Date:
Subject: Re: Rather large LA
Next
From: Andy Colson
Date:
Subject: Re: Rather large LA