gis-ops / docker-valhalla

This is our flexible Docker repository for the Valhalla routing engine
MIT License
228 stars 69 forks source link

mjolnir.traffic_extract configuration ignored and even rewritten when set to directory which is different from tile dir #125

Open Ashen-Cz opened 8 months ago

Ashen-Cz commented 8 months ago

Reopening from https://github.com/valhalla/valhalla/issues/4380 as @nilsnolde suggested:

Due to some infrastructure issues, I need to keep traffic and tile files separated. So my config looks something like this:

"tile_dir": "/custom_files/valhalla_tiles",
"tile_extract": "/custom_files/valhalla_tiles.tar",
"traffic_extract": "/valhalla/traffic.tar",

Interestingly, upon firing up Valhalla, I've noticed this on log: '(stat): /custom_files/traffic.tar No such file or directory'. I've double checked, modified traffic_extract to /valhalla/traffic.tar again, but it seems that every time I start Valhalla, the "traffic_extract" is rewritten back to /custom_files/traffic.tar . Is this by design and traffic must be in the same dir as tiles or is it bug?

nilsnolde commented 8 months ago

I wouldn’t call it a bug, but it’s also not really necessary.. you can try removing this line: https://github.com/gis-ops/docker-valhalla/blob/c0389c8abcc36f1549a692282b83acab75cb8ffa/scripts/configure_valhalla.sh#L126 , should work.