Re: BUG #5995: connection pooling not working

From: Scott Mead <scottm(at)openscg(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Suprabhat <suprabhatm(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5995: connection pooling not working
Date: 2011-04-27 14:41:57
Message-ID: BANLkTi=9u7QC5UNk934-U4T5GURBG8TMdg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-bugs

First, this isn't a bug... this is more of a discussion for -general or
-admin.

On Wed, Apr 27, 2011 at 9:44 AM, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov
> wrote:

> "Suprabhat" <suprabhatm(at)gmail(dot)com> wrote:
>
> > FATAL: too many connections already and there are too many
> > postgres processes on the server. We have used connection
> > pooling methods after unsuccessfully using pgpool2.
>
> Is there a thread somewhere where you were trying to get help
> configuring pgpool?
>

Agreed, pgpool is quite sensitive to being configured properly.
If you're using the pooler and you are still getting that error, it is
definitely a configuration issue.

>
> > Probably we are doing some basics wrong.
> >
> > Total number of connections we are trying to make is something
> > around 300 concurrently.
>
> Well, the main point of a connection pool is to allow multiple
> client-side processes or threads to see a large number of logical
> connections to the database while those funnel down to a small
> number on the database side. 300 active users might do quite well
> on a connection pool which maintains 10 or 20 connections to the
> database. It sounds like you haven't used the correct settings to
> achieve that.
>
>
In all honesty, if you're just looking for a connection pool, I personally
prefer pgbouncer. That being said, pgpool provides a lot of other features
(load-balancing, replication,etc...).

-Kevin
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mark Stosberg 2011-04-27 14:48:26 best practice for moving millions of rows to child table when setting up partitioning?
Previous Message Kevin Grittner 2011-04-27 13:44:37 Re: BUG #5995: connection pooling not working

Browse pgsql-bugs by date

  From Date Subject
Next Message Carlo Curatolo 2011-04-28 08:53:49 Re: BUG #5800: "corrupted" error messages (encoding problem ?)
Previous Message Kevin Grittner 2011-04-27 13:44:37 Re: BUG #5995: connection pooling not working