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

feat(database): db engine connection attempts during startup #223

Merged
merged 12 commits into from
Jul 8, 2022

Conversation

Michael-Vol
Copy link
Contributor

What kind of change does this PR introduce?
This PR adds support for multiple connection attempts in the Sequelize adapter in case connection fails.

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other (please describe)

Does this PR introduce a breaking change?

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the main branch
  • When resolving a specific issue, it's referenced in the PR's description (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature

Other information:

@kon14 kon14 changed the title feat(database): add reconnect attempts to sequelize feat(database): db engine connection attempts during startup Jul 6, 2022
@Michael-Vol Michael-Vol requested a review from kon14 July 6, 2022 11:43
@kon14 kon14 marked this pull request as draft July 6, 2022 12:02
@kon14
Copy link
Contributor

kon14 commented Jul 6, 2022

Actually, let's also make the timeout duration consistent between Mongoose and Sequelize and display a connection attempt message in Mongoose.

kon14 added 5 commits July 6, 2022 16:45
chore(database): db engine connection logs

Database engine initial connection timeout may now be configured via
specifying desired ms in MAX_CONN_TIMEOUT_MS env var.
@kon14 kon14 marked this pull request as ready for review July 7, 2022 10:33
@kon14
Copy link
Contributor

kon14 commented Jul 8, 2022

This needs to be rebased against Mongoose updates from main.

@kkopanidis kkopanidis merged commit 7c45ce7 into main Jul 8, 2022
@kkopanidis kkopanidis deleted the postgres-reconnect branch July 8, 2022 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants