Re: Server crash... trying to figure it out

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Wells Oliver" <woliver(at)padres(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Server crash... trying to figure it out
Date: 2011-05-31 18:56:16
Message-ID: 4DE4F380020000250003DF20@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Wells Oliver <woliver(at)padres(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jenish 2011-06-01 06:07:29 Strange behavior of child table.
Previous Message Wells Oliver 2011-05-31 18:35:28 Re: Server crash... trying to figure it out