[OSRM-talk] Running several OSRM instances?

Robert Scott lists at humanleg.org.uk
Wed May 15 18:43:30 UTC 2013


On Wednesday 15 May 2013, Emil Tin wrote:
> We would like to offer different bicycle profiles (including cargo bikes) on our site http://www.ibikecph.dk, and in our mobile app. 
> 
> OSRM can't yet serve different profiles from the same instance. A workaround is to run mulitple instances. Does anyone have experience with running several OSRM instances on the same server?
> 
> 
> It imagine it would be nice to map paths or params to ports, perhaps using apache rewrite_mod. Example:
> 
> http://routes.ibikecph.dk/viaroute?.......						# => map to port 5000, OSRM instance serving normal bike routes
> http://routes.ibikecph.dk/viaroute?.......&profile=cargobike 		# => map to port 5001, OSRM instance serving routes for cargo bikes

I suspect you'll have to run a reverse proxy like mod_proxy or.. I hear nginx is good for this stuff.

It would probably make more sense and be easier to set up if you did /bike/viaroute?... and /cargobike/viaroute?... though.

However the idea of running osrm naked to the web in general scares me a little though.


robert.



More information about the OSRM-talk mailing list