Re: PostgreSQL with Zabbix - problem of newbe

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: PostgreSQL with Zabbix - problem of newbe
Дата
Msg-id l2gb42b73151004090930r8942742fhe96e3c8fe4920916@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PostgreSQL with Zabbix - problem of newbe  (Greg Smith <greg@2ndquadrant.com>)
Ответы Re: PostgreSQL with Zabbix - problem of newbe  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-performance
On Fri, Apr 9, 2010 at 12:03 PM, Greg Smith <greg@2ndquadrant.com> wrote:
> The main problem with this configuration is that work_mem is set to an
> unsafe value--1.6GB.  With potentially 400 connections and about 2GB of RAM
> free after starting the server, work_mem='4MB' is as large as you can safely
> set this.

if you need more work_mem for this or that and also need to serve a
lot of connections, you can always set it locally (1.6GB is still too
high though -- maybe 64mb if you need to do a big sort or something
like that).

Another path to take is to install pgbouncer, which at 400 connections
is worth considering -- but only if your client stack doesn't use
certain features that require a private database session.  zabbix will
_probably_ work because it is db portable software (still should check
however).

merlin

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: PostgreSQL with Zabbix - problem of newbe
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: PostgreSQL with Zabbix - problem of newbe