ohsome-api
ohsome-api copied to clipboard
Adding behavior on failure of db-connection
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."
related: #167