-
Notifications
You must be signed in to change notification settings - Fork 31
♻️Slight improvement on dynamic-sidecar startup time #8720
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
♻️Slight improvement on dynamic-sidecar startup time #8720
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8720 +/- ##
==========================================
+ Coverage 87.49% 89.07% +1.57%
==========================================
Files 2018 1355 -663
Lines 79384 57312 -22072
Branches 1389 154 -1235
==========================================
- Hits 69457 51050 -18407
+ Misses 9531 6213 -3318
+ Partials 396 49 -347
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
YuryHrytsuk
left a comment
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.
Thanks @sanderegg!
It would be nice to know, how much startup time did you save with these changes? A bit of clarity :)
GitHK
left a comment
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.
Amazing, but good
|
I think 3.15 will do this automatically for all imports. |
@YuryHrytsuk on my computer about 1-2 seconds. on the EC2 I cannot say yet. |
🧪 CI InsightsHere's what we observed from your CI run for de0b3a9. 🟢 All jobs passed!But CI Insights is watching 👀 |
|
wvangeit
left a comment
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.
Thx



What do these changes do?
Latest tests showed that the dynamic-sidecar startup time is relatively slow, i.e. between 7-10 seconds between the
boot.shlast log entry and the first entry coming from the python fastapi application.Tests show that this is mostly due to application import time. With some noticeably slow in the
application.pyfile.Noticeably slow are the import of the REST Api routers/RPC routers. Also the Tracing facilities import many many modules.
The problem is slightly reduced by importing inside the functions, so that the import is done when the functions are used instead of module import time. This is beneficial to follow timings in the logs, as otherwise we are blind.
Related issue/s
How to test
Dev-ops