Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
26364 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

werd was here ;)

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
pro 21
2405
2
úno 19
9564
7
pro 18
8095
14
pro 17
101242
0
zář 17
2573