drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
692 stars 90 forks source link

Reuse database #659

Open allhadmehendale opened 2 years ago

allhadmehendale commented 2 years ago

Hello, I am very new to Overpass-API so looking for some best practices guidelines to set up multiple instances of Overpass-API and spin up new instances if any instance dies for some reason.

I was wondering if I can somehow reuse the database created by one Overpass-API when creating a new instance of Overpass instance so that I do not have to wait for ~ 5 hours. I was also wondering if copying the ./db folder to the new instance will work?

The reason why I was looking for this

Any pointer on how to do this would be of great help. Thanks in advance!

Regards, Allhad Mehendale

mmd-osm commented 2 years ago

I think you need to clarify what you mean by "if any instance dies for some reason". If it includes a corrupted database due to some failed update, your whole approach is probably a bit futile. Otherwise there's probably no published "best practices guidelines" available for your use case. You can copy db files. However, I would strongly recommend to make sure minutely updates are disabled during that time.

By the way, your question may be better suited for some overpass mailing list or similar. This repo is for bug reports and enhancement requests.