Re: Increasing maximum connection for postgresql 9.2

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Amardeep Kaur *EXTERN*" <amardeepkaur88(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Increasing maximum connection for postgresql 9.2
Date: 2014-02-21 13:20:59
Message-ID: A737B7A37273E048B164557ADEF4A58B17CB525A@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Amardeep Kaur wrote:
> I am trying to increase the max_connection from 100 to 5000. I modified shared_buffer and changed
> kernel parameters according to
> http://www.postgresql.org/docs/9.2/static/kernel-resources.html#SYSVIPC.

As has been mentioned, that is too much.
There is also an interesting article on the Wiki:
http://wiki.postgresql.org/wiki/Number_Of_Database_Connections

> When i stress test it with 500 concurrent request, then after 150 - 160 concurrent connections my
> database enters into recovery mode and it fails the request. For my stress test i am trying to get
> data from one table.
>
> Do you guys have any idea what is causing the problem or if i am missing some other configuration?

The database does not go into recovery mode just like that.
Look into the database log and see if you can find the appropriate messages, then
we can figure out what caused the problem.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Amardeep Kaur 2014-02-21 13:37:23 Re: Increasing maximum connection for postgresql 9.2
Previous Message Amardeep Kaur 2014-02-21 11:16:42 Re: Increasing maximum connection for postgresql 9.2