OpenERP and Gunicorn

Is it possible to have a more specific configuration for openerp 6.1 and gunicorn? I am interested in running openerp on the wsgi web server, and I am interested in having more detailed information on cron task management :) There is poor documentation on the Internet.

+7
source share
4 answers

Take a look at http://thu.openerp.com/open-days-2012/gunicorn.html

Edit: it refers to the openerp-cron-worker script, which is currently being merged in 6.1, check the code https://code.launchpad.net/~openerp-dev/openobject-server/6.1-here-comes- the-bogeyman-vmt

Edit2: meanwhile openerp-cron-worker script landed in lp: openobject-server / 6.1 at rev4184 ( http://bazaar.launchpad.net/~openerp/openobject-server/6.1/revision/4184 )

+3
source

I understand that it has a bad document, if you look at the Green Unicorn (gunicorn) gUnicorn config configuration link, you will find many parameters that can be used for the gun process and for managing workers, for example

1) employee_connections The maximum number of concurrent clients. In this case, the configuration file can be configured as follows:

worker-connections = 1000 

2) max_requests The maximum number of requests that the worker will process before rebooting.

 max_requests = 2 

3) timeout Workers, silent for more than a few seconds, are killed and restarted.

 timeout = 30 

For safety:

4) limit_request_line

The maximum size of the HTTP request string in bytes.

 limit_request_line = 4094 

Thus, you can configure the configuration file of your server using these parameters, which will help you in more efficient process management.

Hope this helps you. Let me know if I missed something.

Hi

+1
source

Not a solution, but this additional pointer may be useful: there is an OpenArp document that describes the use of Gunicorn. See page 12-15.

0
source

I think something has changed.

I do not see in 6.1.1 any code associated with a separate cron-worker script.

It also looks like it was deleted .

Guys, is someone working with OpenERP with Gunicorn in production? How do you handle the cron issue?

0
source

All Articles