Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Added connection pooling to DB config and added defaults for the same#358

Merged
EngHabu merged 6 commits intomasterfrom
pmahindrakar/1956
Mar 2, 2022
Merged

Added connection pooling to DB config and added defaults for the same#358
EngHabu merged 6 commits intomasterfrom
pmahindrakar/1956

Conversation

@pmahindrakar-oss
Copy link
Copy Markdown
Contributor

@pmahindrakar-oss pmahindrakar-oss commented Feb 28, 2022

Signed-off-by: Prafulla Mahindrakar prafulla.mahindrakar@gmail.com

TL;DR

Added connection pooling for the admin DB config.
Conservative defaults have been added based on the RDS limits.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

Remove the 'fixes' keyword if there will be multiple PRs to fix the linked issue

fixes flyteorg/flyte#1956

Follow-up issue

NA

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 28, 2022

Codecov Report

Merging #358 (24ded0a) into master (d5aa1f4) will increase coverage by 0.01%.
The diff coverage is 66.66%.

❗ Current head 24ded0a differs from pull request most recent head f798f42. Consider uploading reports for the commit f798f42 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #358      +/-   ##
==========================================
+ Coverage   58.43%   58.44%   +0.01%     
==========================================
  Files         152      152              
  Lines       11073    11084      +11     
==========================================
+ Hits         6470     6478       +8     
- Misses       3903     3906       +3     
  Partials      700      700              
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/runtime/application_config_provider.go 12.50% <ø> (ø)
pkg/repositories/database.go 51.35% <66.66%> (+3.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5aa1f4...f798f42. Read the comment docs.

EngHabu
EngHabu previously approved these changes Feb 28, 2022
Copy link
Copy Markdown
Contributor

@EngHabu EngHabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! one comment

lupasarin
lupasarin previously approved these changes Mar 1, 2022
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
@pmahindrakar-oss pmahindrakar-oss force-pushed the pmahindrakar/1956 branch 2 times, most recently from 2f5e9c2 to f798f42 Compare March 2, 2022 09:07
@pmahindrakar-oss pmahindrakar-oss requested a review from EngHabu March 2, 2022 09:08
@EngHabu EngHabu merged commit d9b2502 into master Mar 2, 2022
@EngHabu EngHabu deleted the pmahindrakar/1956 branch March 2, 2022 18:12
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
…#358)

* Added connection pooling to DB config and added defaults for the same

Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>

* go mod changes for sql lite used for unit tests

Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>

* linter fixes

Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>

* test fix

Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>

* feedback

Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>

* updated the description for the flags

Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Housekeeping] Use Gorm V2 connection pooling

3 participants