pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedMAX_CONNECTIONS ??
2+ messages / 2 participants
[nested] [flat]
* MAX_CONNECTIONS ??
@ 2008-11-12 16:05 paulo matadr <saddoness@yahoo.com.br>
2008-11-12 17:41 ` Re: [GENERAL] MAX_CONNECTIONS ?? Richard Huxton <dev@archonet.com>
0 siblings, 1 reply; 2+ messages in thread
From: paulo matadr @ 2008-11-12 16:05 UTC (permalink / raw)
To: GENERAL <pgsql-general@postgresql.org>; pgsql-admin
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
# - 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
Thanks for help
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [GENERAL] MAX_CONNECTIONS ??
2008-11-12 16:05 MAX_CONNECTIONS ?? paulo matadr <saddoness@yahoo.com.br>
@ 2008-11-12 17:41 ` Richard Huxton <dev@archonet.com>
0 siblings, 0 replies; 2+ messages in thread
From: Richard Huxton @ 2008-11-12 17:41 UTC (permalink / raw)
To: paulo matadr <saddoness@yahoo.com.br>; +Cc: GENERAL <pgsql-general@postgresql.org>; pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-11-12 17:41 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-11-12 16:05 MAX_CONNECTIONS ?? paulo matadr <saddoness@yahoo.com.br>
2008-11-12 17:41 ` Richard Huxton <dev@archonet.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox