-
Notifications
You must be signed in to change notification settings - Fork 550
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
Feature request: collect stack dump from containerd #3918
Comments
Certainly sounds reasonable. I can work something up this week most likely, unless you're wanting to do this yourself and opening this issue just for tracking. |
I'm not sure I'll have bandwidth soon (and Python is not a language I'm super familiar with) so I'd certainly appreciate it if you made the change. Thanks! |
Adds a new `stackdump` option that, if enabled, will send SIGUSR1 to the root containerd process(es) to trigger writing of stack dump logs by the daemon, then marks those logs for collection. Resolves: sosreport#3918 Signed-off-by: Jake Hunsaker <[email protected]>
@samuelkarp I just pushed #3926 for this, I think it covers the request but please take a look when you have a moment and let us know if there is anything missing. |
I think that looks like it would work. To invoke a user would need to pass |
Yup.
That was actually what prompted me to make the changes to |
That's still probably valuable; getting a stack dump from each shim would be fairly noisy and only useful in rare cases. Maybe if we put that behind a second option that might be better than having everything behind |
Adds a new `stackdump` option that, if enabled, will send SIGUSR1 to the root containerd process(es) to trigger writing of stack dump logs by the daemon, then marks those logs for collection. Resolves: sosreport#3918 Signed-off-by: Jake Hunsaker <[email protected]>
Adds a new `stackdump` option that, if enabled, will send SIGUSR1 to the root containerd process(es) to trigger writing of stack dump logs by the daemon, then marks those logs for collection. Resolves: #3918 Signed-off-by: Jake Hunsaker <[email protected]>
@TurboTurtle Thank you! |
containerd can produce a stack dump, which is helpful when troubleshooting issues that may turn out to be bugs in containerd. The stack dump can be triggered by sending
SIGUSR1
to the main containerd daemon, and the dump is then both written to the journal (via containerd's normal logger) and to a file in/tmp
namedcontainerd.<pid>.stacks.log
(with<pid>
being the PID of containerd).It would be helpful if the containerd plugin could trigger the stack dump and collect them.
The text was updated successfully, but these errors were encountered: