aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLazyDBA247-Anyvision <yonin@anyvision.co>2020-09-10 09:24:08 +0300
committerLazyDBA247-Anyvision <yonin@anyvision.co>2020-09-10 09:24:08 +0300
commite73f0d4e8150c141702d52a102a761cd1409c177 (patch)
tree890248249beb260c9398732f013f6c1868f34f91
parent229eeb83012fdbe2d2baf08dea972954ca3c33b0 (diff)
downloadseaweedfs-e73f0d4e8150c141702d52a102a761cd1409c177.tar.xz
seaweedfs-e73f0d4e8150c141702d52a102a761cd1409c177.zip
change default livens & readiness probe timings to allow less pod restarts on large
clusters
-rw-r--r--k8s/seaweedfs/templates/filer-statefulset.yaml2
-rw-r--r--k8s/seaweedfs/templates/master-statefulset.yaml10
-rw-r--r--k8s/seaweedfs/templates/s3-deployment.yaml2
-rw-r--r--k8s/seaweedfs/templates/volume-statefulset.yaml10
4 files changed, 16 insertions, 8 deletions
diff --git a/k8s/seaweedfs/templates/filer-statefulset.yaml b/k8s/seaweedfs/templates/filer-statefulset.yaml
index 43da74c43..0bf20f922 100644
--- a/k8s/seaweedfs/templates/filer-statefulset.yaml
+++ b/k8s/seaweedfs/templates/filer-statefulset.yaml
@@ -149,6 +149,7 @@ spec:
periodSeconds: 15
successThreshold: 1
failureThreshold: 100
+ timeoutSeconds: 3
livenessProbe:
httpGet:
path: /
@@ -158,6 +159,7 @@ spec:
periodSeconds: 30
successThreshold: 1
failureThreshold: 5
+ timeoutSeconds: 3
{{- if .Values.filer.resources }}
resources:
{{ tpl .Values.filer.resources . | nindent 12 | trim }}
diff --git a/k8s/seaweedfs/templates/master-statefulset.yaml b/k8s/seaweedfs/templates/master-statefulset.yaml
index 87050534f..32d03a453 100644
--- a/k8s/seaweedfs/templates/master-statefulset.yaml
+++ b/k8s/seaweedfs/templates/master-statefulset.yaml
@@ -133,19 +133,21 @@ spec:
path: /cluster/status
port: {{ .Values.master.port }}
scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 15
+ initialDelaySeconds: 10
+ periodSeconds: 45
successThreshold: 2
failureThreshold: 100
+ timeoutSeconds: 5
livenessProbe:
httpGet:
path: /cluster/status
port: {{ .Values.master.port }}
scheme: HTTP
initialDelaySeconds: 20
- periodSeconds: 10
+ periodSeconds: 30
successThreshold: 1
- failureThreshold: 6
+ failureThreshold: 4
+ timeoutSeconds: 5
{{- if .Values.master.resources }}
resources:
{{ tpl .Values.master.resources . | nindent 12 | trim }}
diff --git a/k8s/seaweedfs/templates/s3-deployment.yaml b/k8s/seaweedfs/templates/s3-deployment.yaml
index 1bb3283f1..0e786a6c3 100644
--- a/k8s/seaweedfs/templates/s3-deployment.yaml
+++ b/k8s/seaweedfs/templates/s3-deployment.yaml
@@ -116,6 +116,7 @@ spec:
periodSeconds: 15
successThreshold: 1
failureThreshold: 100
+ timeoutSeconds: 3
livenessProbe:
httpGet:
path: /
@@ -125,6 +126,7 @@ spec:
periodSeconds: 60
successThreshold: 1
failureThreshold: 20
+ timeoutSeconds: 3
{{- if .Values.s3.resources }}
resources:
{{ tpl .Values.s3.resources . | nindent 12 | trim }}
diff --git a/k8s/seaweedfs/templates/volume-statefulset.yaml b/k8s/seaweedfs/templates/volume-statefulset.yaml
index 426f923df..4db8391f9 100644
--- a/k8s/seaweedfs/templates/volume-statefulset.yaml
+++ b/k8s/seaweedfs/templates/volume-statefulset.yaml
@@ -142,19 +142,21 @@ spec:
path: /status
port: {{ .Values.volume.port }}
scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 15
+ initialDelaySeconds: 15
+ periodSeconds: 90
successThreshold: 1
failureThreshold: 100
+ timeoutSeconds: 5
livenessProbe:
httpGet:
path: /status
port: {{ .Values.volume.port }}
scheme: HTTP
initialDelaySeconds: 20
- periodSeconds: 30
+ periodSeconds: 90
successThreshold: 1
- failureThreshold: 10
+ failureThreshold: 4
+ timeoutSeconds: 5
{{- if .Values.volume.resources }}
resources:
{{ tpl .Values.volume.resources . | nindent 12 | trim }}