mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-09-04 22:22:21 +02:00
The startup probe for the injected plugin-barman-cloud sidecar previously left `periodSeconds` unset, so the API server defaulted it to 10s. Because the sidecar is a native init container that gates the main postgres container on reaching `Started`, this added roughly one full period to every pod's startup, even though the probe itself (a local unix-socket health check) normally succeeds in milliseconds. `periodSeconds` is now 1s, so the probe reports success almost immediately in the common case. To avoid trading away failure tolerance for that faster common case, `failureThreshold` is raised to 30 and `timeoutSeconds` is lowered to 5s: a unix-socket call essentially never times out under mere load, so hitting the timeout means the sidecar is genuinely unresponsive rather than just slow, and it's fine to give that rare case more attempts before restarting the container. Closes #991 Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> |
||
|---|---|---|
| .. | ||
| cmd | ||
| cnpgi | ||
| controller | ||
| scheme | ||