Make the Store liveness probe timeout configurable

Under heavy load, the 1s default timeout for the Store liveness probe
can be often triggered, which leads to Store restarts.

The default value is 1s, to keep the current behavior, and in affected
environments one can increase it.

Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
This commit is contained in:
Douglas Camata 2022-10-10 16:44:43 +02:00
parent 826595f0cc
commit 5fa86178a6
7 changed files with 18 additions and 5 deletions

View File

@ -124,6 +124,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901

View File

@ -124,6 +124,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901

View File

@ -124,6 +124,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901

View File

@ -112,6 +112,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901

View File

@ -22,6 +22,9 @@
grpc: 10901,
http: 10902,
},
livenessProbe: {
timeoutSeconds: 1,
},
tracing: {},
minTime: '',
maxTime: '',

View File

@ -135,11 +135,16 @@ function(params) {
{ name: 'tls-secret', mountPath: ts.config.objectStorageConfig.tlsSecretMountPath },
] else []
),
livenessProbe: { failureThreshold: 8, periodSeconds: 30, httpGet: {
scheme: 'HTTP',
port: ts.config.ports.http,
path: '/-/healthy',
} },
livenessProbe: {
failureThreshold: 8,
periodSeconds: 30,
timeoutSeconds: ts.config.livenessProbe.timeoutSeconds,
httpGet: {
scheme: 'HTTP',
port: ts.config.ports.http,
path: '/-/healthy',
},
},
readinessProbe: { failureThreshold: 20, periodSeconds: 5, httpGet: {
scheme: 'HTTP',
port: ts.config.ports.http,

View File

@ -71,6 +71,7 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 30
timeoutSeconds: 1
name: thanos-store
ports:
- containerPort: 10901