<div dir="ltr"><div>Yeah - osrm-routed uses the SO_REUSEPORT socket option (see <a href="https://lwn.net/Articles/542629/">https://lwn.net/Articles/542629/</a>), which means you can run two copies of osrm-routed, and the operating system will round-robin incoming connections between the two processes.</div><div>Handy if you want to do lossless handover from one process to another, but can cause some confusion if you forget you've already got osrm-routed running.</div><div><br></div><div>daniel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 6, 2020 at 2:52 PM Rohit Sivakumar <<a href="mailto:rohit@rideco.com">rohit@rideco.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Please ignore the previous email. <div><br></div><div>It appears an older osrm server on my machine had not terminated properly, causing the nondeterminism.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 6, 2020 at 10:34 AM Rohit Sivakumar <<a href="mailto:rohit@rideco.com" target="_blank">rohit@rideco.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I've been trying to build a profile for large vehicles on osrm. Since I couldn't find out-of-the-box solutions to disable all the via-way u-turns using just the vehicle profiles, I wrote a script last week to detect and add u-turn restrictions wherever possible to an .osm file passed as input.<br></div><div><br></div><div>The problem is, osrm respects these restrictions sometimes, but not always. What's even odd is that the same Distance API call (same endpoint and input parameters, same profile) sometimes returns a route with u-turns and at other times it without the u-turns.</div><div><br></div><div>Has anyone encountered nondeterminism in osrm before ? I can provide more information if this would help.</div><div><br></div><div>Here's an osrm-frontend screenshot of one such instance where the exact same api-call is made to my local server, but returns two different routes: <a href="https://pasteboard.co/J2yZmbX.png" target="_blank">https://pasteboard.co/J2yZmbX.png</a></div></div>
</blockquote></div>
_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
</blockquote></div>