Re: Postgresql with max_connections=4096

From: denis(at)edistar(dot)com
To: Jeff Trout <threshar(at)torgo(dot)978(dot)org>
Cc: Richard Huxton <dev(at)archonet(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgresql with max_connections=4096
Date: 2005-07-28 07:18:29
Message-ID: 42E886C5.6050307@edistar.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I picked 260 because 256 are the max clients in the apache configuration
file.
My problem is that every apache request need to make a connection to the
database, so if I have all the 256 apache processes working, I need at
least 256 pg_pool processes.

However, with the pg_pgpool installed in each machine with 260 preforked
clients, the test ended quite well. The postgresql server didn't loaded
two much and errors like "There is already a transaction in progress"
disappeared (I think that was a problem with the apache persistent
connections).

I encountered also other problems that I must to check. I think they are
caused by my application.

As soon as I have some results, I'll let you know.

Thank you,
Denis

Jeff Trout wrote:

>
> On Jul 27, 2005, at 10:46 AM, denis(at)edistar(dot)com wrote:
>
>> I'm now testing with pg_pool installed on each apache frontend with
>> 260 pg_pool preforked clients in each machine.
>
>
> Why did you pick 260?
>
> You don't need a 1:1 ratio. That is the point of the pool. Those
> connections are "shared". Chances are extremely high that all your
> apache clients are not issuing queries at the same exact time so your
> queries end up getting funnelled into those X connections.
>
> I ran with 32 kids on pg_pool and 350 apache processes. never had a
> problem.
>
> --
> Jeff Trout <jeff(at)jefftrout(dot)com>
> http://www.jefftrout.com/
> http://www.stuarthamm.net/
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message denis 2005-07-28 07:20:48 Re: Postgresql with max_connections=4096
Previous Message Tom Lane 2005-07-28 06:40:15 Re: [GENERAL] MySQL to PostgreSQL, was ENUM type