Skip to Content
Menu
This question has been flagged
1 Reply
5384 Views

hello guys, i have staging vps with 1 gb ram and im still confused how to config my odoo  conf

i see some example like this, for 16 gb ram

can someone explain me about this.. thanks :)

workers = 17

limit_memory_hard = 13690208256

limit_memory_soft = 11408506880

limit_request = 8192

limit_time_cpu = 60

limit_time_real = 120

max_cron_threads = 2
Avatar
Discard
Best Answer

All of this is explained in the Deploying Odoo documentation, which you should carefully read if you want to run odoo by yourself. See: https://www.odoo.com/documentation/13.0/setup/deploy.html

See also basic optimization of Postgresql: https://pgtune.leopard.in.ua

These values are calculated, from resources available. They are mainly useful with Nginx as a frontend proxy.

Workers and cron-threads are based on CPU cores available. Memory is obviously from Ram. But don't forget to reserve CPU power and Ram to Postgresql and Nginx.

Worker number calculation
Rule of thumb : (#CPU * 2) + 1
Cron workers need CPU
1 worker ~= 6 concurrent users
Memory size calculation
Needed RAM = #worker * ( (light_worker_ratio * light_worker_ram_estimation) + (heavy_worker_ratio * heavy_worker_ram_estimation) )

(above formulas comes from Deploying documentation)

On a small VPS like yours, the formulas must be adapted, assuming you will have no more than one or two users and some visitors on website. In your case, there is no easy standard way to calculate those number, you will need metrics to adapt the formula. But an experienced sysadmin can guess right values quickly.k

Hope this help. Do not hesitate to ask further questions.

Avatar
Discard
Related Posts Replies Views Activity
3
Oct 24
32648
1
Aug 25
189
0
Aug 25
2
0
Jul 25
2
0
Jul 25
3