fix: raise failureThreshold to 30 and halve probe timeout to 5s

The 1s periodSeconds keeps the common case fast, since the probe
is a local unix socket call that normally succeeds in milliseconds.
A unix socket connection essentially never times out under mere
load, so hitting the timeout implies the sidecar is genuinely
unresponsive rather than just slow; raising failureThreshold gives
that rare case more patience before restarting the container.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
Marco Nenciarini 2026-07-09 09:18:23 +02:00
parent 5aef349d72
commit 9238148883
No known key found for this signature in database
GPG Key ID: 589F03F01BA55038

View File

@ -404,8 +404,8 @@ func reconcilePodSpec(
baseProbe := &corev1.Probe{ baseProbe := &corev1.Probe{
PeriodSeconds: 1, PeriodSeconds: 1,
FailureThreshold: 10, FailureThreshold: 30,
TimeoutSeconds: 10, TimeoutSeconds: 5,
ProbeHandler: corev1.ProbeHandler{ ProbeHandler: corev1.ProbeHandler{
Exec: &corev1.ExecAction{ Exec: &corev1.ExecAction{
Command: []string{"/manager", "healthcheck", "unix"}, Command: []string{"/manager", "healthcheck", "unix"},