From: Magnus Hagander <magnus@hagander.net>
To: Jonah H. Harris <jonah.harris@gmail.com>
Cc: Shiva Sarna <shivasarna@yahoo.co.in>
Cc: pgsql-performance@postgresql.org
Subject: Re: increasing database connections
Date: Thu, 1 Mar 2007 09:58:24 +0100
Message-ID: <20070301085824.GB27639@svr2.hagander.net> (raw)
In-Reply-To: <36e682920702282149y3529b175ob5814e3f957aec15@mail.gmail.com>
References: <20070301051859.65918.qmail@web7714.mail.in.yahoo.com>
<36e682920702282149y3529b175ob5814e3f957aec15@mail.gmail.com>
On Thu, Mar 01, 2007 at 12:49:14AM -0500, Jonah H. Harris wrote:
> On 3/1/07, Shiva Sarna <shivasarna@yahoo.co.in> wrote:
> >I am sorry if it is a repeat question but I want to know if database
> >performance will decrease if I increase the max-connections to 2000. At
> >present it is 100.
>
> Most certainly. Adding connections over 200 will degrade performance
> dramatically. You should look into pgpool or connection pooling from
> the application.
Are you sure? I've heard of at least one installation which runs with
5000+ connections, and it works fine. (you know who you are - I don't
know if it's public info, so I can't put out the details - but feel free
to fill in :P)
That said, there's certainly some overhead, and using pgpool if possible
is good advice (depending on workload). I'm just wondering about
the "dramatically" part.
//Magnus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: magnus@hagander.net, jonah.harris@gmail.com, shivasarna@yahoo.co.in
Subject: Re: increasing database connections
In-Reply-To: <20070301085824.GB27639@svr2.hagander.net>
References: <20070301051859.65918.qmail@web7714.mail.in.yahoo.com> <36e682920702282149y3529b175ob5814e3f957aec15@mail.gmail.com> <20070301085824.GB27639@svr2.hagander.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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