Hi Steve, Before going in to modifying the source code try to load each OSRM instance in separate docker containers with different ports enabled. Each container can be setup to use it¹s own shared memory. When the container starts you make it do osrm-datastore followed by osrm-routed. I have a setup like this and find it very convenient.
Good luck! /Andreas Karlsson Den 2015-04-06 19:42 skrev Stephen Woodbridge <[email protected]>: >Hi Patrick, > >Ok, Thanks. I did think this was possible with some kind of hack but >wanted to check. > >The use case I have is working with a VRP solver the links to the OSRM >engine using shared memory and the client is interested in supporting >various (2 or 3) cost profiles based on time of day that they are making >plans for. In our case we have fairly small city area sized graphs and >can afford to load 2-3 variants into memory at a time if needed. > >If this becomes a priority then the can look at the hack you suggested. > >Thank you for the quick response and suggestion. > >-Steve > >On 4/6/2015 11:59 AM, Patrick Niklaus wrote: >> Hey Stephen, >> >> no that is not possible. Should be rather simple to hack that >> functionality into the engine by adding an id to the data that is loaded >> into memory and selecting that with additional server parameters. >> >> Though I don't think we would want that upstream. >> >> Cheers, >> Patrick >> >> On Mon, Apr 6, 2015 at 5:40 PM, Stephen Woodbridge >> <[email protected] <mailto:[email protected]>> wrote: >> >> Hi, >> >> Is it possible to run osrm-datastore to load multiple graphs on a >> single server, then to setup osrm-routed on different ports and to >> access a specific graph in datastore? >> >> How can this be done? >> >> Thanks, >> -Steve >> >> --- >> This email has been checked for viruses by Avast antivirus software. >> http://www.avast.com >> >> >> _________________________________________________ >> OSRM-talk mailing list >> [email protected] <mailto:[email protected]> >> https://lists.openstreetmap.__org/listinfo/osrm-talk >> <https://lists.openstreetmap.org/listinfo/osrm-talk> >> >> >> >> >> _______________________________________________ >> OSRM-talk mailing list >> [email protected] >> https://lists.openstreetmap.org/listinfo/osrm-talk >> > > >--- >This email has been checked for viruses by Avast antivirus software. >http://www.avast.com > > >_______________________________________________ >OSRM-talk mailing list >[email protected] >https://lists.openstreetmap.org/listinfo/osrm-talk _______________________________________________ OSRM-talk mailing list [email protected] https://lists.openstreetmap.org/listinfo/osrm-talk
