Re: Re: [NOVICE] Re: re : PHP and persistent connections - Mailing list pgsql-hackers

From Alain Toussaint
Subject Re: Re: [NOVICE] Re: re : PHP and persistent connections
Date
Msg-id Pine.LNX.4.30.0011252352240.501-100000@alain
Whole thread Raw
In response to Re: [NOVICE] Re: re : PHP and persistent connections  (Ron Chmara <ron@Opus1.COM>)
Responses Re: Re: [NOVICE] Re: re : PHP and persistent connections
Re: Re: [NOVICE] Re: re : PHP and persistent connections
List pgsql-hackers
> "I have all sorts of client apps, connecting in different ways, to
> my server. Some of the clients are leaving their connections open,
> but unused. How can I prevent running out of backends, and boot
> the inactive users off?"

how about having a middle man between apache (or aolserver or any other
clients...) and PosgreSQL ??

that middleman could be configured to have 16 persistant connections,every
clients would deal with the middleman instead of going direct to the
database,this would be an advantage where multiple PostgreSQL server are
used...

240 apache process are running on a box and there's 60 PostgreSQL instance
running on the machine or another machine:

240 apache process --> middleman --> 60 PostgreSQL process

now if there's multiple Database server:

240 apache process --> middleman --> 12 PostgreSQL for each server (5
servers in this case)

in this case,the middleman could be a shared library which the clients
link to..

what do you think about that ??

Alain Toussaint



pgsql-hackers by date:

Previous
From: "Mitch Vincent"
Date:
Subject: Re: Re: [NOVICE] Re: re : PHP and persistent connections
Next
From: Don Baccus
Date:
Subject: Re: Re: [NOVICE] Re: re : PHP and persistent connections