You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Isolation checker for the liveness probe of a primary #7551
By default, CloudNativePG automatically configures the liveness probe parameters based on the value of .spec.livenessProbeTimeout, specifically:
failureThreshold: FAILURE_THRESHOLD
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
Given that .spec.livenessProbeTimeout is by default set to 30, the liveness probe will report a failure if it detects three consecutive probe failures, with a 10-second interval between each check.
We would first need to discuss whether this setting is appropriate when the isolation check is enabled.
Second, I would like to discuss whether isolationCheck is enabled by default starting from 1.27.
Please don't hesitate to propose a different interface and give feedback on the above.
Finally, we need to remove the support for the annotation and update the docs.
I spoke with @fcanovai today, and we agreed that keeping the default value at 30 seconds for detecting when the primary is isolated is appropriate, as we want to identify this issue as quickly as possible.
The only remaining decision is whether to set probes.liveness.isolationCheck.enabled to true by default.
Do you have any comments on this? Shall we start with "disabled" (as the patch does) and re-evaluate it when we have more use cases and feedback?
Ultimately, I believe this feature should be enabled by default to promote best practices and improve cluster safety. However, I’m not yet confident that it has been tested broadly enough. As a next step, I suggest enabling it by default now and actively encouraging community members to test it in a variety of environments. If any significant issues or valid concerns arise, we can revisit the default setting and disable it before the final release of 1.27.0.
Activity
gbartolini commentedon Jun 18, 2025
I am trying to propose an interface for this:
By default, CloudNativePG automatically configures the liveness probe parameters based on the value of
.spec.livenessProbeTimeout, specifically:failureThreshold: FAILURE_THRESHOLDperiodSeconds: 10successThreshold: 1timeoutSeconds: 5Given that
.spec.livenessProbeTimeoutis by default set to30, the liveness probe will report a failure if it detects three consecutive probe failures, with a 10-second interval between each check.We would first need to discuss whether this setting is appropriate when the isolation check is enabled.
Second, I would like to discuss whether isolationCheck is enabled by default starting from 1.27.
Please don't hesitate to propose a different interface and give feedback on the above.
Finally, we need to remove the support for the annotation and update the docs.
gbartolini commentedon Jun 19, 2025
I spoke with @fcanovai today, and we agreed that keeping the default value at 30 seconds for detecting when the primary is isolated is appropriate, as we want to identify this issue as quickly as possible.
The only remaining decision is whether to set
probes.liveness.isolationCheck.enabledto true by default.Do you have any comments on this? Shall we start with "disabled" (as the patch does) and re-evaluate it when we have more use cases and feedback?
mnencia commentedon Jun 20, 2025
Ultimately, I believe this feature should be enabled by default to promote best practices and improve cluster safety. However, I’m not yet confident that it has been tested broadly enough. As a next step, I suggest enabling it by default now and actively encouraging community members to test it in a variety of environments. If any significant issues or valid concerns arise, we can revisit the default setting and disable it before the final release of 1.27.0.
feat(spec,probes): primary isolation check in the liveness probe (clo…