conveyal / analyst-server

DEPRECATED; see https://github.com/conveyal/analysis-ui
MIT License
37 stars 6 forks source link

Off-line mode problematic #181

Open abyrd opened 9 years ago

abyrd commented 9 years ago

I just wasted quite a long time trying to figure out why on earth my breakpoints were not being hit, results were appearing when workers were down, results were broken in ways my code couldn't possibly produce etc. before I realized that I had off-line mode enabled in analyst-server.

The broker's off-line mode is very useful, but the server's doesn't seem to work right and can be extremely confusing.

I'm going to add some example config files and documentation to steer people away from this problem in the future.

abyrd commented 9 years ago

While working on Analyst server high over Siberia, I was faced with some true off-line usage. Observations:

On the analyst-server component, off-line mode attempts to run the analysis within the same process. I suggest we drop this feature and always require separate server / broker / worker processes to be running (that way we're testing the real integrated system, and we don't have to maintain two parallel ways of working with it), but we retain the offline mode, making it mean something else:

  1. Disable stormpath authentication
  2. Divert all S3 operations to a local directory called "S3" (and do the same thing on the workers).

So the idea is to make it really work with no internet connection or hosted services, but keep the same architecture as when it's running on AWS.

stepankuzmin commented 8 years ago

Hi there! Any news on this? I've tried to use analyst-server in offline mode — set up osm-lib, uploaded gtfs, set offline mode and tried to use my local opentripplanner instance, but couldn't run any analyse.

My config looks like this:

cluster.broker=http://localhost:8080
cluster.work-offline=true
application.vex=http://localhost:9002

After I run isochrones, I'm getting Processing query... for long time with no results.