Re: Why would I want to use connection pooling middleware?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Why would I want to use connection pooling middleware?
Дата
Msg-id 20090115161316.GC6440@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Why would I want to use connection pooling middleware?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Kirk Strauser <kirk@strauser.com> writes:
> > I have a PostgreSQL 8.3.5 server with max_connections = 400.  At this
> > moment, I have 223 open connections, including 64 from a bunch of
> > webserver processes and about 100 from desktop machines running a
> > particular application.  The rest are from various scheduled processes
> > and other assorted things.  Now, I know there are projects like pgpool-
> > II that can serve to pool connections to the server.  Why would I want
> > to do that, though?
>
> Idle backends eat resources that would be better spent elsewhere.
> (I'm assuming that the majority of those 223 backends aren't actually
> doing anything at any one instant.)  As an example, any system catalog
> update has to be broadcast to all live backends, and they all have to
> dutifully search their catalog caches to flush stale entries.  That costs
> the same whether the backend is being put to use or has been sitting
> idle for minutes.

Also, memory wasted in per-process memory is memory not used for caches.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why would I want to use connection pooling middleware?
Следующее
От: "Christopher Browne"
Дата:
Сообщение: Re: Why would I want to use connection pooling middleware?