Skip to content
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

Add option to enable pprof endpoints #813

Merged

Conversation

swoehrl-mw
Copy link
Collaborator

Description

There have been reports of memory leaks in the operator (#700). This PR adds an option to enable the go pprof endpoints. With them users can get heap and allocation profiles that hopefully help in tracking down the leak.

Issues Resolved

Fixes #626

Check List

  • Commits are signed per the DCO using --signoff
  • [-] Unittest added for the new/changed functionality and all unit tests are successful
  • Customer-visible features documented
  • No linter warnings (make lint)

If CRDs are changed:

  • [-] CRD YAMLs updated (make manifests) and also copied into the helm chart
  • [-] Changes to CRDs documented

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@swoehrl-mw
Copy link
Collaborator Author

swoehrl-mw commented May 14, 2024

@prudhvigodithi @salyh This should help with diagnosing the memory leak reported in #700

@prudhvigodithi
Copy link
Member

Thanks @swoehrl-mw LGTM.

@swoehrl-mw swoehrl-mw merged commit 5a2d2ae into opensearch-project:main May 15, 2024
10 checks passed
@swoehrl-mw swoehrl-mw deleted the feature/pprof-endpoints branch May 15, 2024 06:39
swoehrl-mw added a commit that referenced this pull request Jun 18, 2024
### Description
There have been reports of memory leaks in the operator (#700). This PR
adds an option to enable the [go
pprof](https://pkg.go.dev/net/http/pprof) endpoints. With them users can
get heap and allocation profiles that hopefully help in tracking down
the leak.

### Issues Resolved
Fixes #626

### Check List
- [x] Commits are signed per the DCO using --signoff
- [-] Unittest added for the new/changed functionality and all unit
tests are successful
- [x] Customer-visible features documented
- [x] No linter warnings (`make lint`)

If CRDs are changed:
- [-] CRD YAMLs updated (`make manifests`) and also copied into the helm
chart
- [-] Changes to CRDs documented

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Sebastian Woehrl <[email protected]>
(cherry picked from commit 5a2d2ae)
swoehrl-mw added a commit to MaibornWolff/opensearch-operator that referenced this pull request Jul 2, 2024
### Description
There have been reports of memory leaks in the operator (opensearch-project#700). This PR
adds an option to enable the [go
pprof](https://pkg.go.dev/net/http/pprof) endpoints. With them users can
get heap and allocation profiles that hopefully help in tracking down
the leak.

### Issues Resolved
Fixes opensearch-project#626

### Check List
- [x] Commits are signed per the DCO using --signoff
- [-] Unittest added for the new/changed functionality and all unit
tests are successful
- [x] Customer-visible features documented
- [x] No linter warnings (`make lint`)

If CRDs are changed:
- [-] CRD YAMLs updated (`make manifests`) and also copied into the helm
chart
- [-] Changes to CRDs documented

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Sebastian Woehrl <[email protected]>
(cherry picked from commit 5a2d2ae)
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.

Add pprof capabilities to the operator
2 participants