Skip to Content
Menu
This question has been flagged
2 Replies
5414 Views

I have a processor with 4 cores.

If I edit the config file and add 

workers = 5

The precesors start to get nervous but no improvemet in performance than using yust one processor.

What is the correct configuration for multiple cores


Thanks

Avatar
Discard
Best Answer

Hey Humanoide servicios para la pyme, S.L.N.E.,

By Setting only workers is not enough you have to configure few things,

: (parameter of odoo/postgres database).

1> IN odoo config :   

    limit-memory-soft,limit-memory-hard

2> IN postgres (database) :

    max_connections,shared_buffers,effective_cache_size,work_mem

    maintenance_work_mem,checkpoint_segments,checkpoint_completion_target

    wal_buffers,default_statistics_target.

  • To share the workload between workers mostly you need to divide and allocate memory in such a way so its depending on the system config. (e.g Hard disc Type, Memory (RAM), Size of it,version of postgres and your O.S) .

You do not need to worry about it ,just go through either of below URL to boost up your server speed.

> http://pgtune.leopard.in.ua/
> https://github.com/gregs1104/pgtune


 Thanks,

Avatar
Discard