Prefiltering sources in all calculators

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

Bug Description

The event based calculator prefilters the source models in the method initialize_sources. This has big performance benefits in the case of small region of interests, since only the relevant sources are sent to the workers via rabbitmq. The same is true for all calculators so it makes sense to extend the approach. However special care must be taken for the cases with 100,000+ sources and 100,000+ points, because the filtering time may become the dominant factor of the computation.

Changed in oq-engine:
assignee: nobody → Michele Simionato (michele-simionato)
importance: Undecided → High
milestone: none → 1.0.1
description: updated
Revision history for this message
Michele Simionato (michele-simionato) wrote :
Revision history for this message
Michele Simionato (michele-simionato) wrote :

I have decided to implement the following strategy: if there are few sites (i.e. less than 10,000 sites) apply the prefiltering in the method initialize_sources, otherwise filter in the workers. Even in the largest source models we have (250,000+ sites) the prefiltering takes less than 10 minutes for 10,000 points, so it is fast and can be done on a single core. On the other hand for lots of sites the prefiltering could take hours (I tried with the USA model and 150,000 points) so it cannot be enabled.

Changed in oq-engine:
status: New → 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.