mirror of
https://github.com/thanos-io/kube-thanos.git
synced 2026-05-05 20:16:14 +02:00
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:
parent
826595f0cc
commit
5fa86178a6
@ -124,6 +124,7 @@ spec:
|
||||
port: 10902
|
||||
scheme: HTTP
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 1
|
||||
name: thanos-store
|
||||
ports:
|
||||
- containerPort: 10901
|
||||
|
||||
@ -124,6 +124,7 @@ spec:
|
||||
port: 10902
|
||||
scheme: HTTP
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 1
|
||||
name: thanos-store
|
||||
ports:
|
||||
- containerPort: 10901
|
||||
|
||||
@ -124,6 +124,7 @@ spec:
|
||||
port: 10902
|
||||
scheme: HTTP
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 1
|
||||
name: thanos-store
|
||||
ports:
|
||||
- containerPort: 10901
|
||||
|
||||
@ -112,6 +112,7 @@ spec:
|
||||
port: 10902
|
||||
scheme: HTTP
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 1
|
||||
name: thanos-store
|
||||
ports:
|
||||
- containerPort: 10901
|
||||
|
||||
@ -22,6 +22,9 @@
|
||||
grpc: 10901,
|
||||
http: 10902,
|
||||
},
|
||||
livenessProbe: {
|
||||
timeoutSeconds: 1,
|
||||
},
|
||||
tracing: {},
|
||||
minTime: '',
|
||||
maxTime: '',
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -71,6 +71,7 @@ spec:
|
||||
port: 10902
|
||||
scheme: HTTP
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 1
|
||||
name: thanos-store
|
||||
ports:
|
||||
- containerPort: 10901
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user