-
Notifications
You must be signed in to change notification settings - Fork 27
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-v0: improve registry caching #6799
🐛🎨♻️Director-v0: improve registry caching #6799
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6799 +/- ##
==========================================
+ Coverage 88.40% 89.83% +1.43%
==========================================
Files 1545 1102 -443
Lines 61634 47971 -13663
Branches 2155 410 -1745
==========================================
- Hits 54488 43097 -11391
+ Misses 6818 4804 -2014
+ Partials 328 70 -258
Continue to review full report in Codecov by Sentry.
|
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.
very nice!
timeout=timeout_settings, | ||
json_serialize=json_dumps, | ||
) | ||
session = httpx.AsyncClient(transport=httpx.AsyncHTTPTransport(http2=True)) |
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.
registry accepts http/2?
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.
well it does not reject it so why not use it?
services/director/src/simcore_service_director/registry_proxy.py
Outdated
Show resolved
Hide resolved
services/director/src/simcore_service_director/registry_proxy.py
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
What do these changes do?
Since director-v0 was updated, the home-made caching mechanism was replaced by aiocache.
This lead to a difference in behavior, as the home-made caching was running independently of Rest API calls and would pre-build the cache before any other client would list services.
So the current situation is that the first call to the director /services takes a long time until it gets cached properly.
This PR brings:
Related issue/s
How to test
Dev-ops checklist