Re: Postgre Performance

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Postgre Performance
Дата
Msg-id 4E9DB4D6.3060607@commandprompt.com
обсуждение исходный текст
Ответ на Postgre Performance  ("Deshpande, Yogesh Sadashiv (STSD-Openview)" <yogesh-sadashiv.deshpande@hp.com>)
Список pgsql-general
On 10/18/2011 06:57 AM, Deshpande, Yogesh Sadashiv (STSD-Openview) wrote:
> Hello ,
>
> We have a setup where in there are around 100 process running in
> parallel every 5 minutes and each one of them opens a connection to
> database. We are observing that for each connection , postgre also
> created on sub processes. We have set max_connection to 100. So the
> number of sub process in the system is close to 200 every 5 minutes. And
> because of this we are seeing very high CPU usage. We need following
> information
>
> 1.Is there any configuration we do that would pool the connection
> request rather than coming out with connection limit exceed.

Yes you need a pooler. Initiating connections like that is expensive.
The use of PgBouncer is your friend here.

http://wiki.postgresql.org/wiki/PgBouncer

Sincerely,

Joshua D. Drake

--
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
The PostgreSQL Conference - http://www.postgresqlconference.org/
@cmdpromptinc - @postgresconf - 509-416-6579

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

Предыдущее
От: Raghavendra
Дата:
Сообщение: Re: Postgre Performance
Следующее
От: Samuel Hwang
Дата:
Сообщение: Can someone help explain what's going on from the attached logs?