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 #312

Merged
merged 4 commits into from
Jan 31, 2023

Conversation

krithika369
Copy link
Collaborator

This PR follows the changes introduced in Merlin (caraml-dev/merlin#307) 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.

@krithika369 krithika369 changed the title Add DB connection timeout Add DB connection configs Jan 30, 2023
@krithika369 krithika369 merged commit bbd2cff into caraml-dev:main Jan 31, 2023
@krithika369 krithika369 deleted the add_db_connection_timeout branch January 31, 2023 06:45
shydefoo added a commit that referenced this pull request Feb 1, 2023
* upstream/main:
  Add DB connection configs (#312)
shydefoo added a commit that referenced this pull request Feb 3, 2023
* Add DB connection config

* Apply SQL connection defaults

* Update chart

* Remove default config

---------

Co-authored-by: Krithika Sundararajan <krithika.sundararajan@go-jek.com>
shydefoo added a commit that referenced this pull request Feb 3, 2023
* upstream/main:
  Add DB connection configs (#312)
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