Search code examples
pythonpython-2.7odooopenerp-8

Response time is delayed when we have multiple requests in oodo server or openerp?


My Openerp version is 8.0.

I am very new to the openerp module.My problem is that if i hit the server with the multiple requests I am getting the response after completion of the all the requests processing, to all the requests. What I want from this scenario is, whenever the single request process done among multiple requests that should be served with the relevant response. But I am not getting here. Please suggest me some Ideas.I tried to find out the solution, but I am not able to get that.Thanks in advance.


Solution

  • The Odoo server can process only one request at a time. This means that other request have to wait until they are processed.

    The solution is to run Odoo in multiprocess mode, where several workers can handle requests is parallel (docs):

    Use the --workers=x option, where x is the number of workers to spawn.

    The recommended number of workers to use is 2*n+1, where n is the number of processors of the server.

    Workers also provide better memory management, since they regularly restarted. They are recycled when reaching one of the thresholds, such as a max number of requests --limit-request (defaults to 8196) or memory usage --limit-memory-soft (defaults to 640Mb).