Event Based risk calculations are memory hogs: try a workaround to avoid the aggregation queries

Bug #1169577 reported by Michele Simionato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Engine
Fix Released
Critical
Michele Simionato

Bug Description

Miriam tried to run a risk computation on the new cluster and trashed the system: the hazard getters were taking more than 128Gb of RAM and swapping a lot. Similar problems happened in the past for the scenario damage calculator: the solution was to change the data structure (the gmf table) to avoid having to aggregate several rows at the same location. Here we are trying to see if the same solution can be applied to the event_based calculator. Here the data structure is much more complex. The plan is to introduce a new table gmf_agg to store the aggregated values, so that the risk calculator does not need to perform the aggregation again (and hundreds of times, depending on the number of the workers). The gmf_agg table is populated once for all in the post_processing phase of the hazard calculator.

description: updated
Revision history for this message
Michele Simionato (michele-simionato) wrote :
Changed in oq-engine:
status: New → In Progress
Changed in oq-engine:
importance: Undecided → Critical
assignee: nobody → Michele Simionato (michele-simionato)
milestone: none → 1.0.0
Changed in oq-engine:
status: In Progress → Fix Committed
Changed in oq-engine:
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.