Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
16920 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Unable to run the PostgreSQL service แก้ไขแล้ว
6
ธ.ค. 23
44685
1
มี.ค. 15
9568
4
ธ.ค. 22
11773
1
พ.ย. 22
7889
0
ต.ค. 18
3594