-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add profiler address parameter on node-agent #8618
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
base: main
Are you sure you want to change the base?
Conversation
cc443f2 to
62620ba
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8618 +/- ##
==========================================
- Coverage 60.06% 60.03% -0.03%
==========================================
Files 378 378
Lines 42883 42903 +20
==========================================
Hits 25757 25757
- Misses 15580 15600 +20
Partials 1546 1546 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@RobKenis Thanks for the PR, this change looks good to me. Would you mind adding a changelog to the PR? |
This allows us to enable the profiler endpoints on both the server and the node agent. This helps me in troubleshooting the high memory usage when restoring lots of small files. Refs: vmware-tanzu#8582 Signed-off-by: Rob Kenis <[email protected]>
62620ba to
6cb6b48
Compare
|
@reasonerjt I have added a changelog. The codecov fails, but I don't really see the solution to write tests on the profiler. For the velero server component, I cannot find any related tests to the profiler |
| if err := server.ListenAndServe(); err != nil { | ||
| s.logger.WithError(errors.WithStack(err)).Error("error running profiler http server") | ||
| } |
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.
There's no graceful shutdown of the profiler server when s.ctx is cancelled., tho the same can be said about current metrics server.
This allows us to enable the profiler endpoints on both the server and the node agent.
This helps me in troubleshooting the high memory usage when restoring lots of small files.
Refs: #8582
Thank you for contributing to Velero!
Please add a summary of your change
Add
--profiler-addressoption to node agentDoes your change fix a particular issue?
No. But this helps me in understanding #8582
Please indicate you've done the following:
make new-changelog) or comment/kind changelog-not-requiredon this PR.site/content/docs/main.