conveyal / otpa-cluster

Cluster backend for otpa many-to-many queries.
0 stars 1 forks source link

pre-evict graph #43

Open mattwigway opened 9 years ago

mattwigway commented 9 years ago

When we get a GetGraph message, we should set router = null so that the old graph can be GC'ed if needed.

mattwigway commented 9 years ago

hmm. We'll need to do this in SPTWorker as well, which means we'll need to pass the message along. Or maybe it wouldn't be any slower to just ask the graph builder for the graph each time both in the workermanager and in the sptworker - it should just be an in-memory ref pass.