微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Odoo 13 配置 worker 和 limit_memory_hard、limit_memory_soft、max_cron_threads

如何解决Odoo 13 配置 worker 和 limit_memory_hard、limit_memory_soft、max_cron_threads

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

2 个 vcpu 和 4 GB 内存

如何计算:

  • 工人数量

  • limit_memory_hard

  • limit_memory_soft

  • max_cron_threads

解决方法

看看 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 作业/请求从那里改进。

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。