Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

PostgreSQL Max connections

By
Sam path
on 2/22/16, 6:55 AM 1,182 views

Hi All,

I have installed a bitnami Odoo in Amazon EC2 m4.10xlarge  instance which has 40 vCPU, 160GB RAM and 500GB hard disk

By default PostgreSQL has a max_connections of 150 and I would need it to be increased to 100000(1Lakh connections)

May I know what changes do I have to do in postgresql.conf and sysctl.conf?

Thanks,

Sampath

0

Axel Mendoza

--Axel Mendoza--
10298
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 2/22/16, 8:17 AM

You need to increase the max_connections settings in postgresql.conf according to this guide:

https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server

Normally you need to change: max_connections, shared_buffers and work_mem settings

but read it carefully for your environment, also I suggest you to use a connection pooling like pgbouncer according to this guide

https://wiki.postgresql.org/wiki/Number_Of_Database_Connections

Use the connection pooling to reach your number of max_connections instead of config postgresql to that insane value, read more about that here: http://www.cybertec.at/2014/03/max_connections-performance-impacts/

This are just a few tips, hope this helps


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/22/16, 6:55 AM
Seen: 1182 times
Last updated: 2/22/16, 8:17 AM