Odoo 13 配置工人和 limit_memory_hard、limit_memory_soft、max_cron_threads

Odoo 13 configure workers and limit_memory_hard, limit_memory_soft, max_cron_threads

我已经在 google 云 ubuntu 18 服务器上安装了 odoo 13 规格是 10 GB RAM

2 个 vCPU 和 4 GB 内存

计算方式:

看着 documentation 经验法则。

Worker number calculation

Rule of thumb : (#CPU * 2) + 1

Cron workers need CPU

1 worker ~= 6 concurrent users

memory size calculation
We consider 20% of the requests are heavy requests, while 80% are simpler ones

A heavy worker, when all computed field are well designed, SQL requests are well designed, … is estimated to consume around 1GB of RAM

A lighter worker, in the same scenario, is estimated to consume around 150MB of RAM

Needed RAM = #worker * ( (light_worker_ratio * light_worker_ram_estimation) + (heavy_worker_ratio * heavy_worker_ram_estimation) )

但这些都是一般情况,您可能需要更少或更多。

在你的情况下,我会接受这个,然后根据你的 cron 从那里改进 jobs/request。

Number of workers = 5
limit_memory_hard = defualt
limit_memory_soft = defualt
max_cron_threads = 2