-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 connection pooling #31127
Add connection pooling #31127
Conversation
|
65f05fb
to
b5ac9ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one nit
65a7ac1
to
4c448c5
Compare
@kevinnoel-be, please sign the CLA |
As mentioned in the description, working on it internally to get it signed, please bear with us 😅 |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
4c448c5
to
c2d5795
Compare
@djaglowski Thanks for you patience, the CLA is now signed! |
Thanks @kevinnoel-be. Code looks generally good to me but I think some recent changes upstream have broken compilation: |
855c45a
to
b888c27
Compare
@djaglowski My bad, didn't check much on my side. Ran tests + integration tests locally before (properly) pushing again this time 😅 |
b888c27
to
be153a9
Compare
No worries. There's a decent gap between local tooling and CI, and lots of unrelated activity causing minor conflicts, so it can be very difficult. Looks like one more check: |
Uh, I guess there's an order to things. I did run |
Hmm, I think this may be related to recent changes in out generated test code. I ran
|
You installed mdatagen from core - try That or we still have issues with fmt after generation, I thought we had that figured out. |
Thanks @atoulme. Unfortunately I ran
|
You might want to rebase off the latest main, at least with #31520 the generated files are impacted. |
I rebased locally and unfortunately get the same result |
AFAIS the order we see in CI and locally when running TL;DR I'll rebase on Monday after a |
Behind a feature gate as it's a change in behavior. Improves the connection management by not recreating those endlessly, especially useful when log_connections & log_disconnections PG configs are enabled
be153a9
to
380908b
Compare
Rebased, ran |
**Description:** <Describe what has changed.> Reuse of connections created per database (configured or discovered) vs current behavior to create & close connection per database on each scrape. **Link to tracking Issue:** open-telemetry#30831 **Testing:** Updated unit & integration tests. Also, ran locally multiple scenario: - no feature gate specified (default): current behavior maintained, connections created/closed on each database per scrape - feature gate connection pool enabled, no connection pool config specified (default): reduction of the number of connections created/closed - feature gate connection pool enabled, connection pool config tweaked: connections created on first scrape & closed when configured lifetime reached or collector shutdown **Documentation:** - change log - readme for the feature gate & related optional configurations linked to this feature **Note** Checking internally for getting the CLA signed
**Description:** <Describe what has changed.> Reuse of connections created per database (configured or discovered) vs current behavior to create & close connection per database on each scrape. **Link to tracking Issue:** open-telemetry#30831 **Testing:** Updated unit & integration tests. Also, ran locally multiple scenario: - no feature gate specified (default): current behavior maintained, connections created/closed on each database per scrape - feature gate connection pool enabled, no connection pool config specified (default): reduction of the number of connections created/closed - feature gate connection pool enabled, connection pool config tweaked: connections created on first scrape & closed when configured lifetime reached or collector shutdown **Documentation:** - change log - readme for the feature gate & related optional configurations linked to this feature **Note** Checking internally for getting the CLA signed
Description:
Reuse of connections created per database (configured or discovered) vs current behavior to create & close connection per database on each scrape.
Link to tracking Issue:
#30831
Testing:
Updated unit & integration tests. Also, ran locally multiple scenario:
Documentation:
Note
Checking internally for getting the CLA signed