Skip to content

Application Configuration

Scott Kirkland edited this page Nov 30, 2021 · 2 revisions

OSRM Configuration

NodeJS OSRM bindings must match generated OSRM file versions exactly -- see https://github.com/ucdavis/cec-dataprep/wiki/0SRM for information on how to generate OSRM files.

OSRM files are expected to be found in the ./data directory -- use Azure Storage Files to store OSRM files and map them using the Azure configuration -> path mappings section.

Initial Startup

Cold startup can be pretty slow, presumably because of the size of OSRM files that need to be streamed from file storage. As a workaround I'm currently mapping remote storage to ./dataremote and then using the Bash Azure site tools to copy all the files to ./data (using cp dataremote/* data/). An Azure app service plan can store 10GB so we should have plenty of space to store a copy, though it means when OSRM files are updated this process needs to be followed again.

Clone this wiki locally