pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Wells Oliver <woliver@padres.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Server crash... trying to figure it out
Date: Tue, 31 May 2011 13:56:16 -0500
Message-ID: <4DE4F380020000250003DF20@gw.wicourts.gov> (raw)
In-Reply-To: <5366FE31-4E2E-41C6-94F7-90C9D0477C44@padres.com>
References: <509F1BCA-2A75-41F4-87F5-EBD098023D71@padres.com>
	<4DE4EDC5020000250003DF1B@gw.wicourts.gov>
	<5366FE31-4E2E-41C6-94F7-90C9D0477C44@padres.com>

Wells Oliver <woliver@padres.com> 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



view thread (4+ messages)

Message-ID: <4DE4F380020000250003DF20@gw.wicourts.gov>
Permalink:  ../4DE4F380020000250003DF20@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DE4F380020000250003DF20@gw.wicourts.gov

 · 

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-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, woliver@padres.com
  Subject: Re: Server crash... trying to figure it out
  In-Reply-To: <4DE4F380020000250003DF20@gw.wicourts.gov>
  References: <509F1BCA-2A75-41F4-87F5-EBD098023D71@padres.com> <4DE4EDC5020000250003DF1B@gw.wicourts.gov> <5366FE31-4E2E-41C6-94F7-90C9D0477C44@padres.com> <4DE4F380020000250003DF20@gw.wicourts.gov>

* 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