Skip to content

Commit

Permalink
Merge pull request #15 from quickwit-oss/guilloa/probes
Browse files Browse the repository at this point in the history
Setup startup probes and use proper liveness and readiness probes
  • Loading branch information
fmassot authored Nov 16, 2022
2 parents 4d2db9e + a976536 commit 79fc2f0
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/quickwit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: quickwit
description: Open-Source & Cloud-Native Log Management at any scale.
type: application
version: 0.1.8
version: 0.1.9
appVersion: "edge"
keywords:
- quickwit
Expand Down
2 changes: 2 additions & 0 deletions charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spec:
args: ["run", "--service", "indexer"]
ports:
{{- include "quickwit.ports" . | nindent 12 }}
startupProbe:
{{- toYaml .Values.indexer.startupProbe | nindent 12 }}
livenessProbe:
{{- toYaml .Values.indexer.livenessProbe | nindent 12 }}
readinessProbe:
Expand Down
2 changes: 2 additions & 0 deletions charts/quickwit/templates/janitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spec:
{{- end }}
ports:
{{- include "quickwit.ports" . | nindent 12 }}
startupProbe:
{{- toYaml .Values.janitor.startupProbe | nindent 12 }}
livenessProbe:
{{- toYaml .Values.janitor.livenessProbe | nindent 12 }}
readinessProbe:
Expand Down
2 changes: 2 additions & 0 deletions charts/quickwit/templates/metastore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
{{- end }}
ports:
{{- include "quickwit.ports" . | nindent 12 }}
startupProbe:
{{- toYaml .Values.metastore.startupProbe | nindent 12 }}
livenessProbe:
{{- toYaml .Values.metastore.livenessProbe | nindent 12 }}
readinessProbe:
Expand Down
2 changes: 2 additions & 0 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spec:
args: ["run", "--service", "searcher"]
ports:
{{- include "quickwit.ports" . | nindent 12 }}
startupProbe:
{{- toYaml .Values.searcher.startupProbe | nindent 12 }}
livenessProbe:
{{- toYaml .Values.searcher.livenessProbe | nindent 12 }}
readinessProbe:
Expand Down
44 changes: 36 additions & 8 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,21 @@ searcher:
updateStrategy: {}
# type: RollingUpdate

startupProbe:
httpGet:
path: /health/livez
port: rest
failureThreshold: 12
periodSeconds: 5

livenessProbe:
httpGet:
path: /
path: /health/livez
port: rest

readinessProbe:
httpGet:
path: /
path: /health/readyz
port: rest

nodeSelector: {}
Expand Down Expand Up @@ -101,14 +108,21 @@ indexer:
updateStrategy: {}
# type: RollingUpdate

startupProbe:
httpGet:
path: /health/livez
port: rest
failureThreshold: 12
periodSeconds: 5

livenessProbe:
httpGet:
path: /
path: /health/livez
port: rest

readinessProbe:
httpGet:
path: /
path: /health/readyz
port: rest

nodeSelector: {}
Expand Down Expand Up @@ -145,14 +159,21 @@ metastore:
updateStrategy: {}
# type: RollingUpdate

startupProbe:
httpGet:
path: /health/livez
port: rest
failureThreshold: 12
periodSeconds: 5

livenessProbe:
httpGet:
path: /
path: /health/livez
port: rest

readinessProbe:
httpGet:
path: /
path: /health/readyz
port: rest

nodeSelector: {}
Expand Down Expand Up @@ -186,14 +207,21 @@ janitor:
updateStrategy: {}
# type: RollingUpdate

startupProbe:
httpGet:
path: /health/livez
port: rest
failureThreshold: 12
periodSeconds: 5

livenessProbe:
httpGet:
path: /
path: /health/livez
port: rest

readinessProbe:
httpGet:
path: /
path: /health/readyz
port: rest

nodeSelector: {}
Expand Down

0 comments on commit 79fc2f0

Please sign in to comment.