enhancement: rework core_uploader/debug images - #1115
Merged
Conversation
2 tasks
singholt
reviewed
Apr 22, 2026
singholt
reviewed
Apr 22, 2026
- rewrite core_uploader as a supervisor for debugging (core, heap, rss) - add support for SIGCONT, SIGUSR1 (gcore snapshot), SIGUSR2 (heap snapshot) - profile rss during run - profile jemalloc heap during run (needs env value setup, see docs) - remove redundant EFS images into unified debug - rework init-debug to use core_uploader - add libunwind (required for gcore snapshot) - compile jemalloc profiling support for debug builds - add docs (debug/heap-profiling) - update docs (valgrind, debugging, READMEs)
singholt
approved these changes
Apr 22, 2026
prateekchaudhry
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why this change
The current debug image focuses on running and uploading a core file on crash. This is useful unless the application does not crash or no core file is created. The valgrind image uses valgrind for analysis for leaks, but is not useful for debugging memory growth during application lifetime.
This rework aims to enable tracking heap/rss and use the same upload mechanisms to capture on exit and midrun.
Using the jemalloc heaps and rss we can track allocations and discover where memory may be lingering during run. This helps track growth and suggest changes to fluent-bit in the case the memory is not leaked (on exit).
Testing
Description for the changelog
enhancement: rework core_uploader/debug images
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.