Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lite version of OSRM instance #5879

Closed
KushnirDV opened this issue Nov 10, 2020 · 4 comments
Closed

Lite version of OSRM instance #5879

KushnirDV opened this issue Nov 10, 2020 · 4 comments

Comments

@KushnirDV
Copy link

Is it possible to disable some not used data to get more lite (less size at least 2 times) OSRM instance?
We use only rute and nearest API services. The reasson is to boot two backend OSRM entities on our server.
Will thankful for your answer.

@akashihi
Copy link
Contributor

I guess you are asking if you can decrease dataset size?

@jcoupey
Copy link

jcoupey commented Nov 10, 2020

Related to #5838 (scoped more specifically on potentially removing the guidance dataset).

@danpat
Copy link
Member

danpat commented Nov 10, 2020

@KushnirDV if you use steps=true in your Route API response, then all the data is used.

There are some files generated during osrm-extract that can be deleted, but I don't have a handy list. One way to get the actual list of used files is to use strace and look for open() syscalls to get all the filenames that are used by routing.

If the issue is memory consumption, then you can use the --mmap option to lazy-load data from disk. If you perform a warmup routine with a typical set of queries, this can help you use just the minimum RAM needed for fast queries.

@KushnirDV
Copy link
Author

KushnirDV commented Nov 11, 2020

You are doing a realy good job.
I will compile OSRM version higher than 5.20 to be able to use --mmap and will start generetion a new routing.
Thanks for fast and helpfull support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants