-
I have installed a local version of Nominatim with 14G RAM, 8 cores CPU and 1T SSD( import the entire planet data with "admin" style) . And it is able to process requests at about 20 times per second. Is this speed reasonable? If I want to achieve an order of magnitude increase in speed, is this possible? (because my data volume is a bit large...) would I need to use a machine with more RAM in the first place? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
20 should be possible on 8 core CPU. On https://nominatim.org/release-docs/latest/admin/Deployment/ look at the More RAM will always help, then Postgres can cache more indices. For full planet you'll need 32GB for the import, 64GB is better. That's for the osm2pgsql step which is in the first 2-3 hours of the import so you can try with 14GB first. You can reduce RAM after the import finished. |
Beta Was this translation helpful? Give feedback.
20 should be possible on 8 core CPU. On https://nominatim.org/release-docs/latest/admin/Deployment/ look at the
php-fpm
software. php-fpm also works with Apache not just nginx. It allows to run many parallel processes that keep listening and processing incoming requests in an event-queue and is superior to starting and stopping processes. You'll need to experiment with the settings (https://www.php.net/manual/en/install.fpm.configuration.php) on how many processes should to match your number of CPU cores.More RAM will always help, then Postgres can cache more indices. For full planet you'll need 32GB for the import, 64GB is better. That's for the osm2pgsql step which is in the first 2-3 …