Res: [GENERAL] MAX_CONNECTIONS ??

From: paulo matadr <saddoness(at)yahoo(dot)com(dot)br>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: GENERAL <pgsql-general(at)postgresql(dot)org>, admin <pgsql-admin(at)postgresql(dot)org>
Subject: Res: [GENERAL] MAX_CONNECTIONS ??
Date: 2008-11-12 18:54:24
Message-ID: 950503.16100.qm@web52506.mail.re2.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Only kernel.shmmax have

importance in this case?
about kernel.shmmax it has configured not by me.

________________________________
De: Richard Huxton <dev(at)archonet(dot)com>
Para: paulo matadr <saddoness(at)yahoo(dot)com(dot)br>
Cc: GENERAL <pgsql-general(at)postgresql(dot)org>; admin <pgsql-admin(at)postgresql(dot)org>
Enviadas: Quarta-feira, 12 de Novembro de 2008 14:41:06
Assunto: Re: [ADMIN] [GENERAL] MAX_CONNECTIONS ??

paulo matadr wrote:
> I need help to alter max_connections em my database, this parameter
> stay in defalt MAX_CONNECTIONS=100
> I want to change for MAX_CONNECTIONS=300. about parameters below,
> need to change anything?
>
> 1 -sysctl.conf
>
> kernel.shmmax = 68719476736
> kernel.shmall = 4294967296

Does your shmmax have one digit too many? 68GB?

> # - Memory -
>
> 2-Postgresql.conf
> shared_buffers = 2048MB
> temp_buffers = 12MB
> work_mem = 12MB
> maintenance_work_mem = 128MB
> max_fsm_pages = 4000000
> max_fsm_relations = 5000

Should be OK, depending on your work-load.

One question - what do you plan on doing with 300 active connections?
Unless you've got more than 100 processors in this machine you might
want to consider connection-pooling.

--
Richard Huxton
Archonet Ltd

--
Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mischa Sandberg 2008-11-12 22:05:35 Reliably determining whether the server came up
Previous Message Richard Huxton 2008-11-12 17:41:06 Re: [GENERAL] MAX_CONNECTIONS ??

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-11-12 20:18:05 Re: still gin index creation takes forever
Previous Message Tom Lane 2008-11-12 18:46:37 Re: [GENERAL] Very slow queries w/ NOT IN preparation (seems like a bug, test case)