Skip to content

Commit 8b403c5

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 8b403c5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

charts/sourcegraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Use `**BREAKING**:` to denote a breaking change
88

99
## Unreleased
1010

11+
- Added livenessProbe to zoekt-webserver in indexed-search to detect and restart hung pods
1112
- Fix Pod Disruption Budget for sourcegraph-frontend
1213
- Added a startup probe to the gitserver statefulset to give it time to run the on-disk migration from repo names to repo IDs
1314
- The repo-updater service is no longer needed and has been removed from the chart.

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)