Update multiple index on one Nominatim instance #796
Replies: 1 comment 2 replies
-
You cannot run updates from the same Nominatim instance on multiple Photon instances. Photon keeps state in the Nominatim database that tracks the progress of the updates and makes sure they are applied exactly once. If you want a distributed Photon instance, set up an external ElasticSearch with multiple distributed nodes and make Photon use that through the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
I want to keep my index up-to-date but I serve my geocoder with redundancy.
Is it possible, at the start of the container (after downloading the initial photon index), to do the following start-up (with a cron job triggering update) :
java -jar photon-*.jar -database nominatim -user nominatim -password ... -nominatim-update-init-for update_user
java -jar photon-*.jar -enable-update-api -database nominatim -user nominatim -password ...
Having multiple container doing this at the same time will broke all indexes ? or make some of them miss updates ? Or is it totally safe ?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions