Re: Random server overload

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: Igor Neyman <ineyman(at)perceptron(dot)com>, Viktor <viktor(at)okservers(dot)eu>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Random server overload
Date: 2013-10-02 14:58:45
Message-ID: 1380725925.87939.YahooMailNeo@web162906.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Igor Neyman <ineyman(at)perceptron(dot)com> wrote:

>> Our Java application uses c3p0 connection pooler and we don't
>> think that it's the issue.
>
> "Client-side" connection pooling is different from server-side
> (such as PgBouncer), and I believe is not as effective as
> PgBouncer.

In my experience a good client-side pooler can be more effective --
if all significant traffic is going through a single pooler and the
pool size is set appropriately.  For example, we improved
performance on a 16 code 256 GB server by reducing the pool size of
the web application (handling hundreds of requests per second from
3000 concurrent users) from a maximum of 60 database connections to
35.

http://wiki.postgresql.org/wiki/Number_Of_Database_Connections

> As you stated in original message you have multiple idle
> connections, that's waste of resources.

... and a risk that if they all become active at one time, you can
have a seemingly-random server overload.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Twombly 2013-10-02 17:03:24 Re: [ADMIN] DB link from postgres to Oracle; how to query Dbname.tablename?
Previous Message Sergey Klochkov 2013-10-02 14:44:51 Re: PostgreSQL 9.2 - pg_dump out of memory when backuping a database with 300000000 large objects