Skip to content

Add pprof endpoint flag to the operator - #2805

Open
rajathagasthya wants to merge 1 commit into
NVIDIA:mainfrom
rajathagasthya:pprof-endpoint
Open

Add pprof endpoint flag to the operator#2805
rajathagasthya wants to merge 1 commit into
NVIDIA:mainfrom
rajathagasthya:pprof-endpoint

Conversation

@rajathagasthya

Copy link
Copy Markdown
Contributor

Description

Add a --pprof-bind-address flag wired to controller-runtime's built-in
pprof server (ctrl.Options.PprofBindAddress), for profiling the
operator's memory and CPU at large node counts. The endpoint is disabled
by default and only serves when an address (e.g. ":6060") is given.

The address is exposed as the operator.pprof.bindAddress chart value,
passed to the operator only when set.

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

go build ./cmd/gpu-operator; helm template with and without
operator.pprof.bindAddress set (flag rendered only when set); helm lint.

Add a --pprof-bind-address flag wired to controller-runtime's built-in
pprof server (ctrl.Options.PprofBindAddress), for profiling the
operator's memory and CPU at large node counts. The endpoint is
disabled by default and only serves when an address (e.g. ":6060")
is given.

Expose the address as the operator.pprof.bindAddress chart value,
passed to the operator only when set.

Signed-off-by: Rajath Agasthya <ragasthya@nvidia.com>
@rajathagasthya rajathagasthya self-assigned this Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants