Skip to Content
Menu
This question has been flagged
2 Replies
25575 Views

Is there any proper documentation on how to configure and optimizer the Odoo server and PostgreSQL?

Like how to compute on the ff:

ODOO SERVER CONF

  • workers
  • limit_memory_hard
  • limit_memory_soft
  • limit_request 
  • limit_time_cpu 
  • limit_time_real 
  • max_cron_threads


POSTGRESQL.CONF

  • shared_buffers = 3072MB
  • effective_cache_size = 8192MB

Avatar
Discard
Best Answer

Hello Aurelio,

Here's the configuration.

Server specs(Google Cloud Platform, 4cores,16GB)

=========================================

Odoo

to check cpu

cat /proc/cpuinfo | grep processor | wc -l

workers = (cores * 2) + 1


to check memory

cat /proc/meminfo | grep MemTotal | awk '{ print $2 }'

hard = 768MB

soft = 640MB


computation

limit_memory_hard = hard * 9workers * 1024 * 1024 

limit_memory_soft = soft * 9workers * 1024 * 1024



Odoo-server.conf

from 

#limit_memory_hard = 2684354560

#limit_memory_soft = 2147483648

to

limit_memory_hard = 7247757312

limit_memory_soft = 6039797760

=========================================

Postgresql


sudo nano /etc/postgresql/9.5/main/postgresql.conf 

here's the link to compute \https://pgtune.leopard.in.ua/#/


Postgresql.conf

max_connections = 100

shared_buffers = 4GB

effective_cache_size = 12GB

maintenance_work_mem = 1GB

checkpoint_completion_target = 0.9

wal_buffers = 16MB

default_statistics_target = 100

random_page_cost = 1.1

effective_io_concurrency = 200

work_mem = 20971kB

min_wal_size = 1GB

max_wal_size = 2GB

max_worker_processes = 4




Avatar
Discard

werd was here ;)

Best Answer

Hello Aurel Balanay,

for ODOO SERVER CONF you could refer this documentation https://www.odoo.com/documentation/13.0/setup/deploy.html#builtin-server

for POSTGRESQL.CONF use this https://pgtune.leopard.in.u

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 21
1975
2
Feb 19
9136
7
Dec 18
7680
14
Dec 17
100588
0
Sep 17
2294