GIScience / ohsome-api

API for analysing OpenStreetMap history data
https://api.ohsome.org
GNU Affero General Public License v3.0
45 stars 7 forks source link

Adding behavior on failure of db-connection #37

Open FabiKo117 opened 4 years ago

FabiKo117 commented 4 years ago

Currently, the ohsome API reaches an undesired state when the connection to the (keytables) database is broken.

It should instead try to reconnect to the database and shutdown in case the reconnection fails after a time threshold. This should be triggered when a new request comes in. The request should then get a response like "Cluster currently unavailable - please try again in some minutes."

FabiKo117 commented 3 years ago

related: #167