Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I would like to know and share what is the better minimum tuning we could do on postgres to have OpenERP V7 in a production environment ?
Postgresql come with conservative setup by default (like @odony said in his slide at OpenDays ).
Think it could be very helpfull to share and have a default one optimized for OpenERP use.
Here is the tunning I apply on my (5) servers (Debian Wheezy)
- create an empty file pg_memory.sh in /root directory and copy/paste the code below :
shmall=`expr $phys_pages / 2`
shmmax=`expr $shmall \* $page_size`
echo kernel.shmmax = $shmmax
echo kernel.shmall = $shmall
echo 'Edit /etc/sysctl.conf and apply with : sysctl -p'
- as root execute command :
- As notified in the script, copy/paste the result of the script in /etc/sysctl.conf and execute command :
- You should now have these parameters at the end of sysctl.conf (this is an example):
kernel.shmmax = 2107961344
kernel.shmall = 514639
- now install pgtune (apt-get install pgtune)
- as root, execute command :
pgtune -i /etc/postgresql/9.1/main/postgresql.conf -o pgsql.conf
- This will duplicate the postgresql.conf and add some parameters at the end of the file.
- Just open the new file (/root/pgsql.conf)
- Copy/past the end of the file (lines with pgtune wizard as comment) in the real one ( /etc/postgresql/9.1/main/postgresql.conf ) . Backup it first!
- Restart the server
Note : change path to postgresql.conf according to your OS/Server
PgTune will set parameters according to your system (OS, HD, Memory, etc).
I always trust pgtune and copy/paste "as is" in postgresql.conf. For now, all my servers are running well.
Hope this helps
I think the configuration depends on your installation demands. So far we did not get into any trouble with PostgreSQL, other than VACUUM. The later process will surprise you since once it gets started, it virtually stops the server and affects its performance. But you can get it under control.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/20/13, 5:11 AM|
|Seen: 7865 times|
|Last updated: 3/17/16, 5:41 AM|