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

♻️ director-v2 uses one dy-sidecar API client per sidecar #4085

Merged

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented Apr 11, 2023

What do these changes do?

The connection pool from httpx inside director-v2's dynamic_sidecar_client is running out of connections.

♻️ Changed to be using one client per sidecar now. Trying to mitigate the problem.

Related issue/s

How to test

Tests already exist.

@GitHK GitHK self-assigned this Apr 11, 2023
@GitHK GitHK added changelog:♻️refactor a:director-v2 issue related with the director-v2 service labels Apr 11, 2023
@GitHK GitHK added this to the Jelly Beans milestone Apr 11, 2023
@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Merging #4085 (bcf726a) into master (c032fb5) will decrease coverage by 13.3%.
The diff coverage is 100.0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4085      +/-   ##
=========================================
- Coverage    85.5%   72.2%   -13.3%     
=========================================
  Files         951     398     -553     
  Lines       41264   20612   -20652     
  Branches      957     174     -783     
=========================================
- Hits        35290   14902   -20388     
+ Misses       5755    5661      -94     
+ Partials      219      49     -170     
Flag Coverage Δ
integrationtests 66.6% <96.2%> (-0.1%) ⬇️
unittests 86.2% <77.7%> (+3.8%) ⬆️

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

Impacted Files Coverage Δ
...ce_director_v2/api/dependencies/dynamic_sidecar.py 85.7% <ø> (+5.7%) ⬆️
..._v2/modules/dynamic_sidecar/api_client/__init__.py 100.0% <ø> (ø)
...ules/dynamic_sidecar/scheduler/_core/_scheduler.py 78.7% <ø> (ø)
...or-v2/src/simcore_service_director_v2/cli/_core.py 87.4% <100.0%> (-0.1%) ⬇️
...r_v2/modules/dynamic_sidecar/api_client/_public.py 92.3% <100.0%> (+0.1%) ⬆️
...modules/dynamic_sidecar/scheduler/_core/_events.py 97.2% <100.0%> (ø)
...s/dynamic_sidecar/scheduler/_core/_events_utils.py 91.5% <100.0%> (ø)
...ynamic_sidecar/scheduler/_core/_scheduler_utils.py 100.0% <100.0%> (ø)

... and 707 files with indirect coverage changes

@GitHK GitHK marked this pull request as ready for review April 11, 2023 12:46
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

thanks!

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

thanks!

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

let's hope this will solve the pool issue!
thx

@codeclimate
Copy link

codeclimate bot commented Apr 12, 2023

Code Climate has analyzed commit bcf726a and detected 0 issues on this pull request.

View more on Code Climate.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@GitHK GitHK merged commit 2a680b0 into ITISFoundation:master Apr 12, 2023
@GitHK GitHK deleted the pr-osparc-remove-shared-clients-pool branch April 12, 2023 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:director-v2 issue related with the director-v2 service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

director-v2 shared client connection pool runs out of clients
3 participants