Re: PostgreSQL oom_adj postmaster process to -17

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: PostgreSQL oom_adj postmaster process to -17
Дата
Msg-id 501BDA2702000025000493E5@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: PostgreSQL oom_adj postmaster process to -17  (Radovan Jablonovsky <radovan.jablonovsky@replicon.com>)
Список pgsql-admin
Radovan Jablonovsky <radovan.jablonovsky@replicon.com> wrote:

> In usual load there are not much pressure on memory, but it is
> possible to have all clients start using heavy reports. They are
> valid requests and could consume all memory.

Your clients will get their results back faster if you can arrange
some way to queue these sorts of requests when they get beyond some
reasonable limit.  You might be able to do that using a connection
pool, or you might want to create some sort of job queue which
releases a limited number of such jobs at a time; but I guarantee
that every single person to submit a job to such a queue, including
the last person, will get their results sooner with such queuing
than turning loose a "thundering herd" of requests which puts the
system into swapping.  I guarantee it.

-Kevin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL oom_adj postmaster process to -17
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump on Postgres 9.1