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 DB connection configs #60

Merged
merged 3 commits into from
Jan 31, 2023

Conversation

krithika369
Copy link
Collaborator

@krithika369 krithika369 commented Jan 30, 2023

What this PR does / why we need it:

This PR is similar to caraml-dev/turing#312 for Turing. It adds a few DB connection configs to avoid intermittent "broken pipe" errors on outgoing connections to the database. This is done by forcefully closing idle connections to the DB through the following configs (all defaults are 0):

  ConnMaxIdleTime: 0s
  ConnMaxLifetime: 0s
  MaxIdleConns: 0
  MaxOpenConns: 0

The values can be overridden at deploy time, if needed, through the apiConfig properties. (No explicit chart changes are needed to support this.)

@krithika369 krithika369 requested a review from a team January 30, 2023 09:08
@krithika369 krithika369 merged commit 2182325 into caraml-dev:main Jan 31, 2023
@krithika369 krithika369 deleted the add_db_connection_timeout branch January 31, 2023 06:45
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