Skip to content

feat(spec,probes): primary isolation check in the liveness probe - #7845

Merged
gbartolini merged 13 commits into
mainfrom
dev/7551
Jul 4, 2025
Merged

gbartolini merged 13 commits into
mainfrom
dev/7551

Conversation

@armru

@armru armru commented Jun 18, 2025 •

Copy link
Copy Markdown
Member

This patch promotes the liveness pinger feature from its previous experimental status (using the alpha.cnpg.io/livenessPinger annotation) to a stable, supported configuration within the Cluster resource, located in the .spec.probes.liveness.isolationCheck section.

The feature is now called "isolation check" and is enabled by default in the liveness probe. The values for requestTimeout and connectionTimeout are set to 1 second by default.

Closes #7551

Release notes

Primary isolation checks for the liveness probe: the liveness pinger, previously configured with the `alpha.cnpg.io/livenessPinger` annotation, is now included in the `Cluster` specification under the `isolationCheck` stanza and is enabled by default, enforcing the shutdown of an isolated primary.

@armru
armru requested a review from jsilvela as a code owner June 18, 2025 13:34
@armru
armru requested a review from a team June 18, 2025 13:34
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 18, 2025
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.22 labels Jun 18, 2025
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@armru

armru commented Jun 18, 2025

Copy link
Copy Markdown
Member Author

/test limit=local

@dosubot dosubot Bot added documentation 📖 Improvements or additions to documentation enhancement 🪄 New feature or request labels Jun 18, 2025
@github-actions

Copy link
Copy Markdown
Contributor

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Jun 18, 2025
@armru

armru commented Jun 23, 2025

Copy link
Copy Markdown
Member Author

/test limit=local

@github-actions

Copy link
Copy Markdown
Contributor

@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jun 23, 2025
@armru armru added do not backport This PR must not be backported - it will be in the next minor release and removed backport-requested ◀️ This pull request should be backported to all supported releases release-1.22 labels Jun 25, 2025
@armru

armru commented Jun 25, 2025

Copy link
Copy Markdown
Member Author

/test limit=local

@github-actions

Copy link
Copy Markdown
Contributor

@leonardoce

Copy link
Copy Markdown
Contributor

/test limit=local

@github-actions

Copy link
Copy Markdown
Contributor

@mnencia
mnencia force-pushed the dev/7551 branch 2 times, most recently from e92db6e to 1f31657 Compare July 2, 2025 11:51
@mnencia mnencia changed the title feat(spec,probes): promote alpha.cnpg.io/livenessPinger feat(spec,probes): promote alpha.cnpg.io/livenessPinger to stable Jul 2, 2025
@mnencia mnencia changed the title feat(spec,probes): promote alpha.cnpg.io/livenessPinger to stable feat(spec,probes): promote livenessPinger from alpha annotation to Cluster spec Jul 2, 2025
@gbartolini

Copy link
Copy Markdown
Contributor

/test limit=local

@github-actions

github-actions Bot commented Jul 3, 2025

Copy link
Copy Markdown
Contributor

@gbartolini gbartolini changed the title feat(spec,probes): promote livenessPinger from alpha annotation to Cluster spec feat(spec,probes): primary isolation check in the liveness probe Jul 4, 2025
armru and others added 13 commits July 4, 2025 14:42
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not backport This PR must not be backported - it will be in the next minor release documentation 📖 Improvements or additions to documentation enhancement 🪄 New feature or request lgtm This PR has been approved by a maintainer ok to merge 👌 This PR can be merged size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Isolation checker for the liveness probe of a primary

5 participants