Re: Occasional giant spikes in CPU load

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Occasional giant spikes in CPU load
Дата
Msg-id 4C2495D70200002500032B16@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Occasional giant spikes in CPU load  (Craig James <craig_james@emolecules.com>)
Ответы Re: Occasional giant spikes in CPU load  (Craig James <craig_james@emolecules.com>)
Список pgsql-performance
Craig James <craig_james@emolecules.com> wrote:

> I always just assumed that lots of backends that would be harmless
> if each one was doing very little.

Even if each is doing very little, if a large number of them happen
to make a request at the same time, you can have problems.  This is
exactly where a connection pool can massively improve both
throughput and response time.  If you can arrange it, you want a
connection pool which will put a limit on active database
transactions and queue requests to start a new transaction until one
of the pending ones finishes.

-Kevin

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

Предыдущее
От: Tom Molesworth
Дата:
Сообщение: Re: sudden spurt in swap utilization (was:cpu bound postgresql setup.)
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: sudden spurt in swap utilization (was:cpu bound postgresql setup.)