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

Add option to retry connection creation, on by default #149

Merged
merged 3 commits into from
Mar 3, 2023

Conversation

levkk
Copy link
Contributor

@levkk levkk commented Jan 25, 2023

Fix for #102

Overall I agree with the point that connection retries are good and transient errors are common. However, sometimes the application knows better. E.g. we use bb8 in https://github.com/levkk/pgcat and during database restarts, we don't want bb8 to retry because we know the database is down (just for a few seconds), and we have logic to handle and back-off in our code. In our situation, we have thousands of clients creating a thundering herd of retries.

This PR makes the retries optional, enabled by default to preserve existing behavior.

@djc djc merged commit f5451a2 into djc:main Mar 3, 2023
@djc
Copy link
Owner

djc commented Mar 3, 2023

Thanks!

@levkk levkk deleted the levkk-optional-retries branch March 9, 2023 06:53
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.

None yet

2 participants