Apache and WSGI dont't work with SciPy

Bug #1378235 reported by Daniele Viganò
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Platform
Fix Committed
Critical
Daniele Viganò

Bug Description

We discovered that after last installations/upgrades of our platform using the production stack (apache + wsgi) page loading take forever causing a timeout.
Platform works using Nginx + uWSGI.

After some investigation we discovered that this issue is caused by WSGI used with SciPy (which has been added recently by the vulnerability app).

This issue can be fixed adding a directive to Apache conf:

WSGIApplicationGroup %{GLOBAL}

See https://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_Simplified_GIL_State_API for details

We need to test that everything works and performance are not impacted by the new directive.

Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

Everything seems to work as expected. PR: https://github.com/gem/oq-platform/pull/248

Changed in oq-platform:
importance: Undecided → Critical
milestone: none → 2.0.0
Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

In the future we can decide to remove SciPy from deps.

Changed in oq-platform:
status: In Progress → Fix Committed
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.