Calculate workers amount:
Number of CPUs * 2 + 1
Example:
lscpu # 2*2+1 = 5 workers
We will use 5 workers for calculation and 4GB RAM, 1GB RAM for OS and 3GB for odoo.
Calculate:
MB of RAM * workers * 1024 * 1024
Example:
1024MB * 5 * 1024 * 1024 = 5368709120
Calculate:
#worker * ( (light_worker_ratio * light_worker_ram_estimation) + (heavy_worker_ratio * heavy_worker_ram_estimation) )
Example for 3GB of RAM:
5 * ((0.5 * 150MB)+(0.5*1024MB)) = 3GB RAM
Before [options] section:
limit_memory_soft = 786432000 limit_memory_hard = 5368709120 limit_request = 8192 limit_time_cpu = 600 limit_time_real = 1200 max_cron_threads = 1 workers = 5
A ugly but working calculator on libreoffice: calculadora_procesos_odoo.ods