Re: Increasing maximum connection for postgresql 9.2
От | om prash jaiswal |
---|---|
Тема | Re: Increasing maximum connection for postgresql 9.2 |
Дата | |
Msg-id | 1392968484.24487.YahooMailNeo@web190805.mail.sg3.yahoo.com обсуждение исходный текст |
Ответ на | Increasing maximum connection for postgresql 9.2 (Amardeep Kaur <amardeepkaur88@gmail.com>) |
Список | pgsql-admin |
Increase your kenal level parameter.
in the /etc/sysctl.conf file
kernal.shmmax=
kernal.shmin =
based on your RAM memory.
Give half of RAM size to these parameter.
calculate the value of kernal.shmmax, kernal.shmin from the given link.
http://www.postgresql.org/docs/9.2/static/kernel-resources.html#SYSVIPC.
http://www.postgresql.org/docs/9.2/static/kernel-resources.html#SYSVIPC.
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.
--
in the /etc/sysctl.conf file
kernal.shmmax=
kernal.shmin =
based on your RAM memory.
Give half of RAM size to these parameter.
calculate the value of kernal.shmmax, kernal.shmin from the given link.
http://www.postgresql.org/docs/9.2/static/kernel-resources.html#SYSVIPC.
On Friday, 21 February 2014 8:06 AM, Amardeep Kaur <amardeepkaur88@gmail.com> wrote:
Hey Guys
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.
Do you guys have any idea what is causing the problem or if i am missing some other configuration?
--
Amardeep Kaur
В списке pgsql-admin по дате отправления: