Skip site navigation (1) Skip section navigation (2)

Re: too many clients

From: Frank Bax <fbax(at)sympatico(dot)ca>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: too many clients
Date: 2004-12-30 14:35:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
At 09:03 AM 12/30/04, Matthew Terenzio wrote:

>>On Thu, 2004-12-30 at 00:20 -0500, Greg Stark wrote:
>>>"Gavin M. Roy" <gmr(at)ehpg(dot)net> writes:
>>>>I use it on a few very high traffic sites without issue, but it is tuned so
>>>>that there is only 1 persistant connection per apache backend and 
>>>>will allow the max apache backends, which by default is generally 256. I
>>>>highly recommend it in such a situation, while I generally do not recommend
>>>>it in any other.
>So if I have one Postgres installation but two databases, is it possible 
>that PHP would create twice as many persistant connections as apache 
>childs? This may be where my understanding went awry.

Exactly right.  But consider that if you used one username in connect 
string for read only access and a different username for admin updates, the 
number of persistent connections would double again! 

In response to

pgsql-php by date

Next:From: Gavin M. RoyDate: 2004-12-30 18:45:36
Subject: Re: too many clients
Previous:From: Matthew TerenzioDate: 2004-12-30 14:03:35
Subject: Re: too many clients

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group