Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect to db on request not on startup #118

Open
schdief opened this issue Sep 11, 2019 · 0 comments
Open

connect to db on request not on startup #118

schdief opened this issue Sep 11, 2019 · 0 comments
Labels

Comments

@schdief
Copy link
Owner

schdief commented Sep 11, 2019

We have a problem that when the app starts and the db is not available, it will never work. Also when the app is running and connected to the db and the db fails, then the app will never reconnect (probably the reason for the downtime on September 11th). We should move the connection to request level in such a way, that for every request it is checked whether the db is connected and if not, a new connection will be set up. If this fails, we'll retry it 3 times with 10s timeouts and then fail the request.

@schdief schdief added the bug label Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant