Allows inheritance of the name_get function of res.partner.bank
[odoo/odoo.git] / gunicorn.conf.py
index 75ca051..0f1d93a 100644 (file)
@@ -21,10 +21,11 @@ pidfile = '.gunicorn.pid'
 # Gunicorn recommends 2-4 x number_of_cpu_cores, but
 # you'll want to vary this a bit to find the best for your
 # particular work load.
-workers = 10
+workers = 4
 
 # Some application-wide initialization is needed.
 on_starting = openerp.wsgi.core.on_starting
+when_ready = openerp.wsgi.core.when_ready
 pre_request = openerp.wsgi.core.pre_request
 post_request = openerp.wsgi.core.post_request
 
@@ -32,7 +33,7 @@ post_request = openerp.wsgi.core.post_request
 # big reports for example
 timeout = 240
 
-#max_requests = 2000
+max_requests = 2000
 
 # Equivalent of --load command-line option
 openerp.conf.server_wide_modules = ['web']
@@ -43,7 +44,6 @@ conf = openerp.tools.config
 # Path to the OpenERP Addons repository (comma-separated for
 # multiple locations)
 conf['addons_path'] = '/home/openerp/addons/trunk,/home/openerp/web/trunk/addons'
-conf['addons_path'] = '/home/thu/repos/addons/trunk,/home/thu/repos/web/6.1-blocking-create-db/addons'
 
 # Optional database config if not using local socket
 #conf['db_name'] = 'mycompany'