首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Odoo 13配置工作人员和limit_memory_hard、limit_memory_soft、max_cron_threads

Odoo 13配置工作人员和limit_memory_hard、limit_memory_soft、max_cron_threads
EN

Stack Overflow用户
提问于 2021-06-06 06:48:44
回答 1查看 3.4K关注 0票数 0

我已经在google ubuntu上安装了odoo 13,服务器规范是10 GB内存。

2个vCPU和4GB内存

如何计算:

  • 工人人数
  • limit_memory_hard
  • limit_memory_soft
  • max_cron_threads
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-09 17:37:45

看看文档,拇指的规则是。

代码语言:javascript
运行
复制
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作业/请求进行改进。

代码语言:javascript
运行
复制
Number of workers = 5
limit_memory_hard = defualt
limit_memory_soft = defualt
max_cron_threads = 2
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67856497

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档