gis-ops / docker-valhalla

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

Valhalla.json documentation #117

Closed blue-bear-tech closed 12 months ago

blue-bear-tech commented 12 months ago

Hello,

I can't find anywhere the documentation for the config file. I'm running Europe on a 7 threads 14 GB of RAM ubuntu server, in htop I see that it's using 1.4 GB of ram at max with 100% CPU when running some performance tests. Can I give Valhalla more RAM and see if it has better performance?

Edit: I just found scripts/valhalla_build_config file.

nilsnolde commented 12 months ago

Properly running Valhalla is a big topic tbh. Just use the .tar file (default) and Valhalla will be in mmap mode.

Ideally you give it as much RAM as the tar file weighs (so around 30 GB approx), so the graph can be (kinda) cached properly. And then some for the algorithms to do their work. And no other process running on that server.

Anyways, if you're doing load testing and you still have some free memory, then upping that won't improve performance. Using fast processors & fast disks will. If you do serious stuff, then you might wanna deep dive in Valhalla's architecture.