Skip to content

Add a flag for enabling pprof on the controller manager#4449

Draft
Okabe-Junya wants to merge 1 commit intoactions:masterfrom
mercari:Okabe-Junya/feature/add-pprof-flag
Draft

Add a flag for enabling pprof on the controller manager#4449
Okabe-Junya wants to merge 1 commit intoactions:masterfrom
mercari:Okabe-Junya/feature/add-pprof-flag

Conversation

@Okabe-Junya
Copy link
Copy Markdown

cf. mercari#3

What

Add a --pprof-addr flag to the controller manager to expose Go's built-in pprof endpoint.

When the flag is set (e.g. --pprof-addr=:6060), the controller-runtime manager starts a pprof HTTP server on the specified address. When the flag is omitted or empty, pprof remains disabled (no behavior change).

The Helm chart is also updated to support configuring this via values.yaml.

Why

When operating ARC at scale, profiling the controller is essential for diagnosing memory leaks, goroutine issues, and CPU bottlenecks. controller-runtime already supports PprofBindAddress in its manager options, but ARC does not expose it as a flag, so there is currently no way to enable pprof without modifying the source code.

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.

1 participant