mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-09-04 22:22:21 +02:00
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:
parent
5aef349d72
commit
9238148883
@ -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"},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user