Skip to content

Commit 2838bed

Browse files
committed
fix/indexed-search: add livenessProbe to zoekt-webserver to prevent hung pods
Without a livenessProbe, zoekt-webserver pods that crash silently remain in an unhealthy state indefinitely. The probe acts as a backup to the in-process watchdog (failureThreshold=10, period=60s > watchdog's 9x60s detection window). ref incident INC-484 https://sourcegraph.slack.com/archives/C0APJUXBG4R
1 parent 1b6f92b commit 2838bed

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

charts/sourcegraph/templates/indexed-search/indexed-search.StatefulSet.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ spec:
6363
ports:
6464
- name: grpc
6565
containerPort: 6070
66+
livenessProbe:
67+
httpGet:
68+
path: /healthz
69+
port: grpc
70+
scheme: HTTP
71+
initialDelaySeconds: 120
72+
timeoutSeconds: 5
73+
periodSeconds: 60
74+
failureThreshold: 10
6675
readinessProbe:
6776
failureThreshold: 3
6877
httpGet:

0 commit comments

Comments
 (0)