Re: Changing the default configuration

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: scott(dot)marlowe(at)ihs(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Changing the default configuration
Date: 2003-02-12 01:10:08
Message-ID: 20030212.101008.41630074.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-hackers pgsql-performance

> My other pet peeve is the default max connections setting. This should be
> higher if possible, but of course, there's always the possibility of
> running out of file descriptors.
>
> Apache has a default max children of 150, and if using PHP or another
> language that runs as an apache module, it is quite possible to use up all
> the pgsql backend slots before using up all the apache child slots.
>
> Is setting the max connections to something like 200 reasonable, or likely
> to cause too many problems?

It likely. First you will ran out kernel file descriptors. This could
be solved by increasing the kernel table or lowering
max_files_per_process, though. Second the total throughput will
rapidly descrease if you don't have enough RAM and many
CPUs. PostgreSQL can not handle many concurrent
connections/transactions effectively. I recommend to employ some kind
of connection pooling software and lower the max connections.
--
Tatsuo Ishii

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Tatsuo Ishii 2003-02-12 01:10:26 Re: Changing the default configuration
Previous Message Tatsuo Ishii 2003-02-12 01:10:00 Re: [HACKERS] Changing the default configuration

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2003-02-12 01:10:26 Re: Changing the default configuration
Previous Message Tatsuo Ishii 2003-02-12 01:10:00 Re: [HACKERS] Changing the default configuration

Browse pgsql-performance by date

  From Date Subject
Next Message Tatsuo Ishii 2003-02-12 01:10:26 Re: Changing the default configuration
Previous Message Tatsuo Ishii 2003-02-12 01:10:00 Re: [HACKERS] Changing the default configuration