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

Add profiler address parameter on node-agent #8618

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RobKenis
Copy link

@RobKenis RobKenis commented Jan 15, 2025

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-address option to node agent

Does your change fix a particular issue?

No. But this helps me in understanding #8582

Please indicate you've done the following:

kaovilai
kaovilai previously approved these changes Jan 16, 2025
Copy link

codecov bot commented Jan 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 21 lines in your changes missing coverage. Please review.

Project coverage is 59.16%. Comparing base (0543750) to head (62620ba).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
pkg/cmd/cli/nodeagent/server.go 0.00% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8618      +/-   ##
==========================================
- Coverage   59.19%   59.16%   -0.03%     
==========================================
  Files         370      370              
  Lines       39812    39832      +20     
==========================================
  Hits        23566    23566              
- Misses      14746    14766      +20     
  Partials     1500     1500              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@reasonerjt
Copy link
Contributor

@RobKenis Thanks for the PR, this change looks good to me.

Would you mind adding a changelog to the PR?

@reasonerjt reasonerjt requested review from Lyndon-Li and removed request for blackpiglet and reasonerjt January 20, 2025 03:31
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]>
@RobKenis
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants