-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
crio status: add goroutines
subcommand
#8697
crio status: add goroutines
subcommand
#8697
Conversation
We can use this to also solve the "heap dump" decable we've been having for a while now. See the following: If we move this to a "debug" namespace, such as we have:
Then That said, goroutines and heap dumps are available when the profiling support is enabled, why add more? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8697 +/- ##
==========================================
- Coverage 46.49% 46.45% -0.04%
==========================================
Files 151 151
Lines 21956 21978 +22
==========================================
+ Hits 10208 10210 +2
- Misses 10684 10702 +18
- Partials 1064 1066 +2 |
9d34151
to
ce1c22b
Compare
Do you suggest to not add the feature at all or should we move it just to the |
f0ad3c0
to
45f4091
Compare
Updated the endpoint and added an integration test. |
The subcommand can be used to query the CRI-O goroutines in the same way as writing them to disk using `SIGUSR1`. This also allows to query the goroutines using the HTTP endpoint: ```shell sudo curl --unix-socket /var/run/crio/crio.sock http://crio/goroutines ``` Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
45f4091
to
2665ada
Compare
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kwilczynski, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
The subcommand can be used to query the CRI-O goroutines in the same way as writing them to disk using
SIGUSR1
. This also allows to query the goroutines using the HTTP endpoint:Which issue(s) this PR fixes:
None
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?