Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
25942 Vistas

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
Descartar
Mejor respuesta

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
Descartar

werd was here ;)

Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 21
2241
2
feb 19
9309
7
dic 18
7873
14
dic 17
100867
0
sept 17
2429