Community mailing list archives
Memory values in configurationby
Anubía, soluciones en la nube, S.L., Alejandro Santana
is there any recommendations regarding the values in config file for:
limit_memory_hard = 2684354560
limit_memory_soft = 2147483648
limit_request = 8192
limit_time_cpu = 60
limit_time_real = 120
workers = 0
I read that recommended value for workers are either: workers = 0 or workers = (cores*2 +1)
Also, limit_memory_soft and limit_memory_hard are "per worker", isn't it?
By default I see 2MiB for soft... so if I set workers = 5, Odoo may try to use 5 * 2MiB = 10 MiB, isn't it?
Then, if I have a 4MiB RAM server, it might crash whenever tries to use more RAM than available?
So, would it be wise to calculate such as:
limit_memory_soft = (0.75 * Total server RAM) / workers
(Allow Odoo to use 75% of server RAM)