Обсуждение: Recommended number of connections

Поиск
Список
Период
Сортировка

Recommended number of connections

От
M C
Дата:
What are the "maximum" amount of "connections" allowed to "postgres"? and what would be a resonable amount of connection/processes to see based on user connections?

Re: Recommended number of connections

От
"Tomeh, Husam"
Дата:

The maximum number of Postgres connections you can have may be controlled by adjusting the max_connections PG parameter based on your anticipated connections needs and requirements.  

 

Make sure that your Kernel’s related parameters are also configured properly to accommodate your max_connections settings (e.g, in Linux, SEM* kernel’s parameters) when increasing the max_connections parameter.

 

http://www.postgresql.org/docs/8.2/static/runtime-config-connection.html

http://www.postgresql.org/docs/8.2/static/kernel-resources.html#SYSVIPC

 

Regards,

      Husam


From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of M C
Sent: Wednesday, September 17, 2008 10:01 AM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Recommended number of connections

 

What are the "maximum" amount of "connections" allowed to "postgres"? and what would be a resonable amount of connection/processes to see based on user connections?

 

**********************************************************************
This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged.  If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited.  If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.

Thank you.

                                                                                                                         FADLD Tag
**********************************************************************

Re: Recommended number of connections

От
"Scott Marlowe"
Дата:
On Wed, Sep 17, 2008 at 11:01 AM, M C <shimeee@yahoo.com> wrote:
> What are the "maximum" amount of "connections" allowed to "postgres"? and
> what would be a resonable amount of connection/processes to see based on
> user connections?

That really depends on what you're doing with it.  If each connection
is doing a simple transaction on a small indexed set, then you can
probably have hundreds of connections open on an even modest machine.
OTOH, if you're running reports across hundreds of megs with a large
work_mem setting then you might be best with only a few dozen or so
connections.

So, what are ya doing and how many users are you supporting at once?