-
Notifications
You must be signed in to change notification settings - Fork 33
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
Adding pyroscope and memray dependencies #1550
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Vishnu Challa <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1550 +/- ##
==========================================
- Coverage 94.89% 94.32% -0.57%
==========================================
Files 60 60
Lines 2685 2698 +13
==========================================
- Hits 2548 2545 -3
- Misses 137 153 +16
|
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.
would it be possible to add these dependencies only for "devel mode"? The same way as GradIO. It will keep number of packages on lowest level possible + images will be smaller + (most important) less CVE-prone
We will need these dependencies when OLS is running through the operator so that we can capture profiles while load testing. Moving them to them |
Signed-off-by: Vishnu Challa <[email protected]>
7353e89
to
55625ad
Compare
Signed-off-by: Vishnu Challa <[email protected]>
Signed-off-by: Vishnu Challa <[email protected]>
ok, but at least loading should be performed if really needed (and configured in config.yaml) right? |
When we say loading, are you referring to |
Yes, in the similar way we "optimized" Gradio packages loading |
I just conducted some experiments to re-evaluate your suggestion. I think moving them to
And pyroscope also captured information that is impossible to interpret. So In order to get better understand on profiling, keeping them in |
Signed-off-by: Vishnu Challa <[email protected]>
333b2ad
to
c8c4a61
Compare
Signed-off-by: Vishnu Challa <[email protected]>
e1ab00a
to
d42ba05
Compare
Makefile
Outdated
memray-run: ## Run the service locally using memray | ||
python -m memray run -o ./memory_profile.bin runner.py | ||
|
||
memray-flamegraph: ## Extract flamegraph from memray output |
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.
you can make it as dependency for memray-run, right
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.
Changed as suggested.
runner.py
Outdated
import requests | ||
|
||
response = requests.get(config.dev_config.pyroscope_url, timeout=60) | ||
if response.status_code == 200: |
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.
requests.codes.ok
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.
Done
Signed-off-by: Vishnu Challa <[email protected]>
d42ba05
to
e90c1ac
Compare
Signed-off-by: Vishnu Challa <[email protected]>
@tisnik can you take a look on this one as well please? |
Signed-off-by: Vishnu Challa <[email protected]>
bbd8719
to
5bd10c3
Compare
Signed-off-by: Vishnu Challa <[email protected]>
a79a13c
to
b64a0e6
Compare
/hold |
@tisnik Is there a reason to hold this PR? |
@vishnuchalla: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
Adding pyroscope and memray dependencies
Type of change
Related Tickets & Documents
Closes
Checklist before requesting a review
Testing
Tested and verified in local. Both pyroscope and memray get triggered as a part of OLS's startup activity.