[Gunicorn] option to preload databases

Bug #1222116 reported by Georges Racinet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP buildout recipe
Fix Released
High
Unassigned

Bug Description

With the current Gunicorn python configuration file produced by the recipe, the worker processes load the database lazily, at the first request.

While this is interesting for some usage profiles, e.g, if there are many sleeping databases and workers restart frequently enough, this will avoid filling the server's RAM for nothing, it can be very annoying for some others (the DB opening sequence is slow and stressful for the DB server).

We need a new option "gunicorn.preload_databases".
To avoid duplication with "options.db_name", users can use variables in their cfg file, if they like.

Related branches

Revision history for this message
Georges Racinet (gracinet) wrote :

Need this about now

summary: - Gunicorn preload option
+ [Gunicorn] option to preload databases
Changed in anybox.recipe.openerp:
status: New → In Progress
Revision history for this message
Georges Racinet (gracinet) wrote :

Done right after the beginning of the 1.8 cyce

Changed in anybox.recipe.openerp:
status: In Progress → Fix Committed
Changed in anybox.recipe.openerp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.