chore(cluster): add support for pprof via alpha.cnpg.io/enableInstancePprof annotation#7876
Merged
chore(cluster): add support for pprof via alpha.cnpg.io/enableInstancePprof annotation#7876
alpha.cnpg.io/enableInstancePprof annotation#7876Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
3a4fb3b to
b6aedb0
Compare
b6aedb0 to
6fa1a0a
Compare
6fa1a0a to
95924fc
Compare
9c8e944 to
9707b2d
Compare
Member
Author
|
Closing since it's not the desired implementation |
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
Member
|
Reopened as we want to have pprof usable in 1.27.0 |
Contributor
|
@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/17760504825 |
mnencia
approved these changes
Sep 16, 2025
cdd0db5 to
d506c46
Compare
gbartolini
approved these changes
Sep 16, 2025
This helps to debug the instance manager to search for leaks and some other perfomances issues Closes #4056 Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
b17e8fe to
00fa7da
Compare
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
f40b2c6 to
79b3dea
Compare
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
alpha.cnpg.io/enableInstancePprof annotation
alpha.cnpg.io/enableInstancePprof annotationalpha.cnpg.io/enableInstancePprof annotation
cnpg-bot
pushed a commit
that referenced
this pull request
Sep 16, 2025
…cePprof` annotation (#7876) This change introduces the ability to enable the Go pprof HTTP server in instance pods by setting the `alpha.cnpg.io/enableInstancePprof` annotation to "true" on a Cluster resource. When enabled, each instance pod exposes a pprof server on port 6060/TCP, making it possible to collect and analyse profiling data for debugging and performance tuning. The operator automatically manages the rolling update needed to apply or remove the annotation. Closes #4056 Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> (cherry picked from commit 46ed0bd)
mnencia
added a commit
that referenced
this pull request
Sep 16, 2025
…cePprof` annotation (#7876) This change introduces the ability to enable the Go pprof HTTP server in instance pods by setting the `alpha.cnpg.io/enableInstancePprof` annotation to "true" on a Cluster resource. When enabled, each instance pod exposes a pprof server on port 6060/TCP, making it possible to collect and analyse profiling data for debugging and performance tuning. The operator automatically manages the rolling update needed to apply or remove the annotation. Closes #4056 Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> (cherry picked from commit 46ed0bd)
mnencia
added a commit
that referenced
this pull request
Sep 16, 2025
…cePprof` annotation (#7876) This change introduces the ability to enable the Go pprof HTTP server in instance pods by setting the `alpha.cnpg.io/enableInstancePprof` annotation to "true" on a Cluster resource. When enabled, each instance pod exposes a pprof server on port 6060/TCP, making it possible to collect and analyse profiling data for debugging and performance tuning. The operator automatically manages the rolling update needed to apply or remove the annotation. Closes #4056 Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> (cherry picked from commit 46ed0bd)
rossigee
pushed a commit
to rossigee/cloudnative-pg
that referenced
this pull request
Oct 2, 2025
…cePprof` annotation (cloudnative-pg#7876) This change introduces the ability to enable the Go pprof HTTP server in instance pods by setting the `alpha.cnpg.io/enableInstancePprof` annotation to "true" on a Cluster resource. When enabled, each instance pod exposes a pprof server on port 6060/TCP, making it possible to collect and analyse profiling data for debugging and performance tuning. The operator automatically manages the rolling update needed to apply or remove the annotation. Closes cloudnative-pg#4056 Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
THE-BRAHMA
pushed a commit
to THE-BRAHMA/cloudnative-pg
that referenced
this pull request
Oct 30, 2025
…cePprof` annotation (cloudnative-pg#7876) This change introduces the ability to enable the Go pprof HTTP server in instance pods by setting the `alpha.cnpg.io/enableInstancePprof` annotation to "true" on a Cluster resource. When enabled, each instance pod exposes a pprof server on port 6060/TCP, making it possible to collect and analyse profiling data for debugging and performance tuning. The operator automatically manages the rolling update needed to apply or remove the annotation. Closes cloudnative-pg#4056 Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>
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.
This change introduces the ability to enable the Go pprof HTTP server in instance pods by setting the
alpha.cnpg.io/enableInstancePprofannotation to "true" on a Cluster resource.When enabled, each instance pod exposes a pprof server on port 6060/TCP, making it possible to collect and analyse profiling data for debugging and performance tuning. The operator automatically manages the rolling update needed to apply or remove the annotation.
Closes #4056