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
Commit b5c4665
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: website/docs/cloudnative-pg.v1.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1610,7 +1610,7 @@ _Appears in:_
1610
1610
|`successThreshold`_integer_| Minimum consecutive successes for the probe to be considered successful after having failed.<br />Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. ||||
1611
1611
|`failureThreshold`_integer_| Minimum consecutive failures for the probe to be considered failed after having succeeded.<br />Defaults to 3. Minimum value is 1. ||||
1612
1612
|`terminationGracePeriodSeconds`_integer_| Optional duration in seconds the pod needs to terminate gracefully upon probe failure.<br />The grace period is the duration in seconds after the processes running in the pod are sent<br />a termination signal and the time when the processes are forcibly halted with a kill signal.<br />Set this value longer than the expected cleanup time for your process.<br />If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this<br />value overrides the value provided by the pod spec.<br />Value must be non-negative integer. The value zero indicates stop immediately via<br />the kill signal (no opportunity to shut down).<br />This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.<br />Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. ||||
1613
-
|`isolationCheck`_[IsolationCheckConfiguration](#isolationcheckconfiguration)_| Configure the feature that extends the liveness probe for a primary<br />instance. In addition to the basic checks, this verifies whether the<br />primary is isolated from the Kubernetes API server and from its<br />replicas, ensuring that it can be safely shut down if network<br />partition or APIunavailability is detected. Enabled by default. ||||
1613
+
|`isolationCheck`_[IsolationCheckConfiguration](#isolationcheckconfiguration)_| Configure the feature that extends the liveness probe for a primary<br />instance. In addition to the basic checks, this reports whether the<br />primary is isolated from the Kubernetes API server and from its<br />replicas, so the kubelet restarts it through the normal<br />container-termination path (a smart shutdown, bounded by<br />`.spec.smartShutdownTimeout`) when a network partition or API<br />unavailability is detected. Enabled by default. ||||
Copy file name to clipboardExpand all lines: website/docs/instance_manager.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,7 @@ following conditions are met:
232
232
1. The instance manager cannot reach the Kubernetes API server
233
233
2. The instance manager cannot reach **any** other instance via the instance manager’s REST API
234
234
235
-
The effect of this behavior is to consider an isolated primary to be not aliveand subsequently **shut it down** when the liveness probe fails.
235
+
The effect of this behavior is to consider an isolated primary to be not alive: the liveness probe fails, and the kubelet restarts the container through its normal termination path. That path is a **smart** shutdown: it refuses new connections but lets sessions that are already open keep committing until `.spec.smartShutdownTimeout` elapses (180 seconds by default). Set `.spec.smartShutdownTimeout: 0` if you need the restart to skip straight to a fast shutdown instead of waiting out that window.
236
236
237
237
It is **enabled by default** and can be disabled by adding the following:
238
238
@@ -267,9 +267,11 @@ spec:
267
267
268
268
:::info
269
269
Primary isolation is distinct from the [safe primary election](failover.md#safe-primary-election)
270
-
mechanism. The isolation check *fences* a primary that has lost connectivity to
271
-
both the API server and the other instances, while the primary lease coordinates
272
-
*which instance is allowed to promote*. The two mechanisms are complementary.
270
+
mechanism. The isolation check reports a primary that has lost connectivity to
271
+
both the API server and the other instances as unhealthy, leaving the kubelet
272
+
to restart it through the normal container-termination path described above;
273
+
the primary lease coordinates *which instance is allowed to promote*. The two
0 commit comments